explosion detection
#1

how do I detect(script) if the player hits by an explosion?
Reply
#2

Under OnPlayerTakeDamage callback, check if weaponid (aka reason for damage) is the explosion reason, which would be 51 for your case.

You can find a list of weapon/damage reason IDs here:
https://sampwiki.blast.hk/wiki/Weapons
Reply
#3

Thanks.

Oh btw it says "error number I forget: function differs from prototype"
and I searched more in wiki and it says, ", bodypart only works for 0.3z.".
but I use 0.3z!
Reply
#4

1 day bump.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)