GetIsReference

Revision as of 13:26, 15 August 2009 by imported>Geckbot (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns 1 if the calling object is the specified reference. As opposed to GetIsID, which checks against the base object ID as defined in the object window, this function takes a specific reference as a parameter. The reference must be persistent.

Syntax:Edit

GetIsReference ReferenceID

Example:Edit

 if GetIsReference NPC1 == 1
  NPC1.moveto player
 elseif GetIsReference NPC2 == 1
  NPC1.moveto player
 endif