Mod:Creation Kit/GetCurrentScene - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Obtains the Scene this reference is currently in, if any. If the reference isn't participating in a scene, it will return None.

Syntax
Scene Function GetCurrentScene native

Parameters
None.

Return Value
The Scene this reference is currently participating in, or None if it isn't in a scene.

Examples
if MyReference.GetCurrentScene == None Debug.Trace("This reference isn't in any scene at all") endIf
 * Did this object start in the tomb?