GetIsReference

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