View Single Post
  #1  
Old 04-29-2007, 08:43 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Request: onPlayerHurt()

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!!
Reply With Quote