Difference between revisions of "IsCellOwner"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JBurgess
 
(Functionality verified via reverse-engineering.)
 
Line 7: Line 7:
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.
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.


'''NOTE:''' Most spaces in Skyrim use faction ownership rather than actor ownership.
== 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==
==See Also==
[[IsInMyOwnedCell]]
* [[IsInMyOwnedCell]]
 
* Papyrus: [[IsActorOwner - Cell]]
==Papyrus Version==
* Papyrus: [[IsFactionOwner - Cell]]
[[IsActorOwner - Cell]]<br/>
[[IsFactionOwner - Cell]]


[[Category:Console Commands]]
[[Category:Console Commands]]

Latest revision as of 16:05, 17 August 2024

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[edit | edit source]

  • 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[edit | edit source]