Difference between revisions of "GetParentCell - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Bug64 m (Added link to Cell Script) |
||
Line 28: | Line 28: | ||
== See Also == | == See Also == | ||
*[[Cell Script]] | |||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Revision as of 18:23, 4 July 2015
Member of: ObjectReference Script
Obtains the Cell this object is currently in.
Syntax
Cell Function GetParentCell() native
Parameters
None
Return Value
The Cell the object is currently in.
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")
endIf
Notes
If the reference is in an unloaded exterior cell, this function will return None.