GetParentCell - ObjectReference
Revision as of 17:54, 21 October 2011 by imported>Plplecuyer
Member of: ObjectReference Script
Obtains the Cell this object is currently in.
SyntaxEdit
Cell Function GetParentCell() native
ParametersEdit
None
Return ValueEdit
The Cell the object is currently in.
ExamplesEdit
; 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
NotesEdit
If the reference is in an unloaded exterior cell, this function will return None.