IsOwner

From the Fallout3 GECK Wiki
Revision as of 04:39, 15 January 2011 by imported>Ez0n3
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: IsOwner.

A function included in the GECK version 1.1.0.36.

Description

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.

Syntax

[help]
(0, 1:int) [ActorRefID].IsOwner ActorRefID|FactionID:ref (optional)

Example

SpecialObject.IsOwner BrotherhoodSteelFaction
SpecialObject.IsOwner SaraLyonsRef
SpecialObject.IsOwner