Description
Wiki Description
Obtains the Cell this object is currently in.
Documentation Comment
Gets the cell this object is in
Caveats
CK Wiki - Notes
- If the reference is in an unloaded exterior cell, this function will return None.
- Non-respawning preplaced items can be "destroyed" if you take them, sell them, and wait for the merchant's inventory to reset. Reportedly, when these references are destroyed, their parent cell is reset to their original spawn location.
Examples
; Is this object and the player in the same cell?
if (PinkPony.GetParentCell() == Game.GetPlayer().GetParentCell())
Debug.Trace("We are in the same cell with the pink pony")
endIfAuto-Generated Example
Cell returnedValue = myObjectReference__toCallFunctionOn.GetParentCell()