GetCurrentScene - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 15:45, 19 April 2011 by imported>Plplecuyer (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Obtains the Scene this reference is currently in, if any. If the referen…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: 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[edit | edit source]

Scene Function GetCurrentScene() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]