Blockland Forums > Modification Help
Making a Projectile Stay on Impact?
<< < (2/2)
ZSNO:

--- Code: ---   minStickVelocity    = 10;
--- End code ---
.Aeris.:

--- Quote from: Unwritten Calender on September 05, 2010, 09:35:14 PM ---Can't you just look at the arrow's code?

--- End quote ---
Have you ever scripted before?
Gadgethm:
Look up Bushido's Nail Gun.  It has a good example of how to do it.
takato14:
Set the projectile's arming delay to less than the lifetime. Then, set "isBallistic" to false. This will make the projectile stay in the ground when fired and disappear later.

If you want an impact explosion, create an explosion datablock that will be the impact, and in the projectile datablock add this:


--- Code: ---bounceExplosion = <name of the impact explosion>;
--- End code ---

The normal explosion is like when the arrow vanishes. Unless the projectile is supposed to explode after going into the ground, you dont want it to do any damage.

Hope this helps you.
Navigation
Message Index
Previous page

Go to full version