Blockland Forums > Modification Help
How to make a projectile explode [Solved]
<< < (2/3) > >>
Ipquarx:
Okay, projectile.explode does not work. the function does not exist.
Unless im getting the projectile from the gun wrong, in which case its very possible im wrong.
Here's currently how im getting the projectile:

--- Code: ---function (imagenameofweaponhere)::onFire(%this, %obj, %slot)
{
    parent::onFire(%this, %obj, %slot);
    %projectile = %this.projectile;
}
--- End code ---
Is this correct? if not, how do i get the projectile?
Gadgethm:
Check the frag grenade script, should have something in there.
Destiny/Zack0Wack0:
You're getting the projectile datablock, not the projectile object.
Ipquarx:

--- Quote from: Destiny/Zack0Wack0 on December 20, 2011, 09:03:07 PM ---You're getting the projectile datablock, not the projectile object.
--- End quote ---
How do I get that?
Destiny/Zack0Wack0:
The parent of onFire should return the projectile. (I think)
Navigation
Message Index
Next page
Previous page

Go to full version