Background for Starfield
Member of the ObjectReference script
CellfunctionGetParentCell()Native

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.


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

Auto-Generated Example

Cell returnedValue = myObjectReference__toCallFunctionOn.GetParentCell()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.