GetParentCell - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Obtains the Cell this object is currently in.
Cell Function GetParentCell() native
The Cell the object is currently in.
; 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") endIf
If the reference is in an unloaded exterior cell, this function will return None.