GetIsReference

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

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

[help]
(0, 1:bool) GetIsReference reference:ref

Example

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