Blockland Forums > Modification Help
Checking For Death by explosion
(1/5) > >>
Swollow:
How would I check if your player was killed in the radius of a explosion?
Wizzeh:
function ProjectileData::radiusDamage(%this, %obj, %col, %distanceFactor, %pos, %damageAmt)

Check if %obj's health - %damageAmt is less than or equal to 0.
Swollow:
I kinda meant all radius damage in general is that possible?
Greek2me:

--- Code: ---function GameConnection::onDeath(%client,%obj,%killer,%type,%area)
--- End code ---

You should be able to use %type to determine if it was due to radius damage. Do some experimenting with it.
Swollow:
Well I'm having a lot of trouble on this, I'll continue trying everything I can.
Navigation
Message Index
Next page

Go to full version