Usage

Syntax: new TServerNPC("name")

Explanation

TServerNPC is the class, derived from TServerPlayer, to which all scripted entities (weapons/GUIs, local NPCs, etc.), within the game belong. This excludes baddies although they are classically considered a type of NPC. It should also be noted that a TServerNPC is created when a script block is added to a GANI.

Example

NPCs can be created via script through the use of the putnpc and putnpc2 functions.
function onCreated() {
  temp.createdNPC = putnpc2(x+1,y,"");
  temp.createdNPC.join("helper");
}

This would create a local NPC that joins the class helper.

Categories

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