Usage

Syntax: function onPlayerEnters() { }

Explanation

The onPlayerEnters event is called when a player enters the level. The player object is automatically focused to the player who entered the level.

Example

function onPlayerEnters()
{
  this.chat = player.account;
}

... would set the NPC's chat text to the account name of the player who entered the level.

Categories

CategoryFunctionEvent
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki