GetInCell

From the CreationKit Wiki
Revision as of 22:49, 1 December 2021 by Jadkai (talk | contribs) (Description of the function was based on Oblivion's behavior, but Skyrim doesn't work that way at all (as Skyblivion discovered).)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

 [ActorID.]GetInCell CellName

Example:

 GetInCell Chorrol 

Returns true if the actor's current cell is the specified cell.

Note: In previous Elder Scrolls games, this condition matched the beginning of the name. Checking GetInCell Chorrol would match "Chorrol", "Chorrol01", "ChorrolFarm", etc. Skyrim's version of this function DOES NOT work this way. The cell must be an exact match. This mechanism has been replaced with the location hierarchy and the GetInCurrentLoc and GetInCurrentLocAlias condition functions.

See Also[edit | edit source]

Papyrus Version[edit | edit source]

GetParentCell - ObjectReference