GetIsReference

From the Oblivion ConstructionSet Wiki
Revision as of 16:03, 14 July 2006 by imported>ShadowDancer (adding definition)
Jump to navigation Jump to search

Syntax:

GetIsReference ObjectID

Example:

 if GetIsReference NPC1 == 1
   messagebox "I am NPC 1" 
 elseif GetIsReference NPC2 == 1
   messagebox "I am NPC 2" 
 else
   messagebox "I am NPC 3" 
 endif

Returns 1 if the specified ObjectID is the calling object or actor.