Usage

Syntax: function onCreated() { }

Explanation

The onCreated event is called when the NPC is updated. NPCs update when they are manually updated through RC. Level NPCs (NPCs created through GraalEditor) are updated when the level is updated either through FileBrowser, RC, or the updatelevel command.

Example

function onCreated()
{
  echo("NPC was updated.");
}

... echoes "NPC was updated." to RC whenever the NPC is updated.

Categories

CategoryFunctionEvent
Comments [Hide comments/form]
doesn't onCreated() get called when a player logs on in a WNPC (clientside)?
-- EditorDeas (2009-01-19 15:47:27)
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki