Difference between revisions of "IsOwner"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Zumbs
(fixed error in description)
imported>Zumbs
m
Line 7: Line 7:




Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, returns 1 if the calling object is owned by the player. Note that IsOwner returns 0 if the owner is set to NONE, so it cannot be used to detect public ownership.
Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, IsOwner returns 1 if the calling object is owned by the player. Note that IsOwner returns 0 if the owner is set to NONE, so it cannot be used to detect public ownership.





Revision as of 11:47, 3 July 2010

Syntax:

IsOwner NPC/FactionID (optional)

Example:

SpecialObject.IsOwner BrotherhoodSteelFaction
SpecialObject.IsOwner SaraLyonsRef
SpecialObject.IsOwner


Returns 1 if calling object is owned by the specified faction/NPC. This only checks actual ownership on the reference not the inherited ownership from the cell. If called without parameter, IsOwner returns 1 if the calling object is owned by the player. Note that IsOwner returns 0 if the owner is set to NONE, so it cannot be used to detect public ownership.