| Blockland Forums > Modification Help |
| Edited vehicle isn't showing up in the addons list |
| << < (2/2) |
| Mr.jacksaunt:
Anyone? |
| Deoxys And One Noob:
--- Quote from: Mr.jacksaunt on March 29, 2012, 07:19:49 AM ---Anyone? --- End quote --- Lemme try the file |
| Deoxys And One Noob:
--- Quote from: Deoxys And One Noob on March 30, 2012, 08:16:57 PM ---Lemme try the file --- End quote --- Try the ol' package scripts |
| Schorle:
Have you tried --- Code: ---datablock ProjectileData(AATurretProjectile : gunProjectile) { directDamage = 40; muzzleVelocity= 90+X; }; --- End code --- instead of function Projectile::onAdd(%obj,%a,%b) ? EDIT: Nvm, totally wrong, just reread Deoysy: --- Code: ---datablock ProjectileData(AATurretProjectile : gunProjectile) { directDamage = 40; }; package AATurret_modifyPackage { function Projectile::onAdd(%obj,%a,%b) { if(%obj.dataBlock.getID() == AATurretProjectile.getID()) { %obj.initialvelocity=vectorscale(vectorNormalize(%obj.initialvelocity),10); } Parent::onAdd(%obj,%a,%b); } }; deactivatePackage(AATurret_modifyPackage); activatepackage(AATurret_modifyPackage); --- End code --- |
| Barnabas:
Have you renamed the datablocks as well? Just in case, so it won't conflict with an already existing add-on. |
| Navigation |
| Message Index |
| Previous page |