Difference between revisions of "IsOwner"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Bnesmith
 
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
Line 11: Line 11:


[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (GECK 1.0)]]
[[Category: Object Functions]]
[[Category: Object Functions]]
[[Category: Object Functions (GECK 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions (GECK 1.0)]]

Revision as of 12:07, 12 August 2009

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, returns 1 if the calling object is owned by the player (i.e. has no ownership).