Usage

Syntax: function onPlayerDies() { }

Explanation

onPlayerDies is triggered when a player is killed in the current level.
It won't be triggered serverside if you're altering the hearts variable on the serverside. Setting player.hearts to 0 on the clientside will correctly trigger the event on the serverside, however.

Example

//#CLIENTSIDE
function onPlayerDies()
{
  putexplosion(2, player.x, player.y);
}

... makes you explode when you die.

Categories

CategoryFunctionEvent

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki