IsOwner

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

IsOwner NPC/FactionID (optional)

Example:

SpecialObject.IsOwner BladesFaction
SpecialObject.IsOwner AmuseiRef
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, or faction.

If called without parameter: returns 1 if the calling object is owned by the player. returns 0 if the calling object is not owned by the player.

Cannot be called as:

IsOwner Player