| Blockland Forums > Modification Help |
| How to Make Weapons for Blockland - The Up-To-Date version. (As of 2 years ago) |
| << < (19/44) > >> |
| RFW2:
--- Quote from: leif16 on October 27, 2009, 06:06:09 PM ---First of all everyone notices the function still says Aikombo gun... you need to change it to the name of your gun --- End quote --- so you do this: }; function LeftHandedGunImage::onFire(%this, %obj, %slot){ Parent::onFire(%this,%obj,%slot); if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, leftrecoil); } function NameOfYourGunImage::onMount(%this, %obj, %slot) { Parent::onMount(%this, %obj, %slot); //mount lefthanded gun %obj.mountImage(LeftHandedGunImage, 1); //%obj.playThread(0, armreadyboth); } function NameOfYourGunImage::onUnMount(%this, %obj, %slot) { Parent::onUnMount(%this, %obj, %slot); //unmount lefthanded gun %obj.unMountImage(1); //%obj.playThread(0, root); } function LeftHandedGunImage::onMount(%this, %obj, %slot) { Parent::onMount(%this, %obj, %slot); %obj.playThread(1, armreadyboth); } function LeftHandedGunImage::onUnMount(%this, %obj, %slot) { Parent::onUnMount(%this, %obj, %slot); } function NameOfYourGunImage::onFire(%this,%obj,%slot) { if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, shiftAway); Parent::onFire(%this,%obj,%slot); //%obj.setImageTrigger(1,1); } |
| origami king 101:
YOU SAVED MY LIFE how did it take to make this? |
| david022497:
Loading Add-On: Weapon_GunLOL (CRC:-465144502) Executing Add-Ons/Weapon_GunLOL/server.cs. Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_GunLOL/GunLOL.dts". Object 'GunLOLProjectile' is not a member of the 'ProjectileData' data block class Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLImage: Unable to load shape: Add-Ons/Weapon_GunLOL/GunLOL.dts. 0 datablocks added. That is what my console says, any help? |
| Hawk:
For some reason I can't rename my PNG File? |
| KoopaScooper:
--- Quote from: david022497 on November 13, 2009, 04:34:38 PM ---Loading Add-On: Weapon_GunLOL (CRC:-465144502) Executing Add-Ons/Weapon_GunLOL/server.cs. Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_GunLOL/GunLOL.dts". Object 'GunLOLProjectile' is not a member of the 'ProjectileData' data block class Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLImage: Unable to load shape: Add-Ons/Weapon_GunLOL/GunLOL.dts. 0 datablocks added. That is what my console says, any help? --- End quote --- Sir, you're missing the .dts files or they're not exported properly. Try again. |
| Navigation |
| Message Index |
| Next page |
| Previous page |