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