GetCurrentScene - ObjectReference
Revision as of 16:45, 19 April 2011 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Obtains the Scene this reference is currently in, if any. If the referen…')
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.
SyntaxEdit
Scene Function GetCurrentScene() native
ParametersEdit
None.
Return ValueEdit
The Scene this reference is currently participating in, or None if it isn't in a scene.
ExamplesEdit
; Did this object start in the tomb?
if MyReference.GetCurrentScene() == None
Debug.Trace("This reference isn't in any scene at all")
endIf