IsOwner

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the 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) [RefID].IsOwner ActorRefID|FactionID:ref (optional)

Example

SpecialRef.IsOwner BrotherhoodSteelFaction
SpecialRef.IsOwner SaraLyonsRef
SpecialRef.IsOwner 

See Also