Since all the default damage is done by this one thing, would it be possible to detect what called it?
HTML Code:
function onPlayerHurt(damageType)
{
player.chat = temp.damageType;
}
Currently returns "0", however, wouldn't it be great if you could find out what called it?
Such as an explosion, the player being hit by a default projectile [arrow, bush, fireball etc].
Wouldn't it be cool, thanks!!