GetIsReference

From the Fallout3 GECK Wiki
Jump to navigation Jump to search

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 | edit source]

GetIsReference ReferenceID

Example:[edit | edit source]

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