Usage

Syntax: function onPlayerLeaves() { }

Explanation

onPlayerLeaves is triggered when a player leaves a level serverside. The player object is automatically focused to the player that just left the level.

Note this is NOT called if the player disconnects.

Example

function onPlayerLeaves()
{
  this.chat = player.nick SPC "just left the level!";
}

... sets the chat of the npc to: "nick of the player who left just left the level!" whenever a player leaves the level which the npc is in.

Categories

CategoryFunctionEvent

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

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