Difference between revisions of "GetIsReference"
Jump to navigation
Jump to search
imported>Scruggs (clarifying as referenceID, not objectID) |
imported>JOG (wikified link) |
||
Line 10: | Line 10: | ||
endif | endif | ||
Returns 1 if the calling object is the specified reference. As opposed to [ | 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. | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Object Functions]] | [[Category: Object Functions]] | ||
[[Category: Condition Functions]] | [[Category: Condition Functions]] |
Revision as of 06:11, 22 July 2006
Syntax:
GetIsReference ReferenceID
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 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.