Blockland Forums > Modification Help
How to make a projectile explode [Solved]
(1/3) > >>
Ipquarx:
How do you make a projectile explode?
Like say if you wanted to make a grenade explode X seconds after it's first bounce or something like that.
This needs to be seperate from the projectile datablock, as in it's not using explodeondeath or lifetime or anything like that.
Greek2me:
Is there a %project.explode() function?
Ipquarx:
I have absolutely no idea, thats why i'm asking.
Port:
Well, projectile::explode() is a default function. I don't know how you would detect when the projectile bounced (maybe something like onImpact or onCollision, I don't have time to research that much right now), but manually detonating the projectile can be done with .explode();
Ipquarx:
Allright, thanks.
Navigation
Message Index
Next page

Go to full version