IsOwner

From the CreationKit Wiki
Revision as of 16:56, 28 November 2011 by imported>JBurgess
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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).

Papyrus Version

GetActorOwner - ObjectReference
GetFactionOwner - ObjectReference