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

There is one comment on this page. [Display comment]

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