IsCellOwner

From the CreationKit Wiki
Revision as of 16:05, 17 August 2024 by DavidJCobb (talk | contribs) (Functionality verified via reverse-engineering.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

IsCellOwner CellID NPC/FactionID (optional)

Example:

IsCellOwner WhiterunDragonsReach DragonsreachOccupants
IsCellOwner WhiterunBreezehome 

Returns 1 if the specified cell is owned by the specified NPC or Faction. If the second parameter is left blank, the function returns 1 if the cell is owned by the player.

Notes

  • Most spaces in Skyrim use faction ownership rather than actor ownership.
    • If this condition function is given an actor, and the cell is owned by a faction, then the condition function will always return 0. It doesn't do any further checking e.g. to see if the actor is a member of that faction.
  • This condition function checks both ownership data on the cell itself, and ownership data on the cell's Encounter Zone (if the cell has one, and if it isn't the hardcoded NoZoneZone).

See Also