GetCurrentScene - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
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…')
 
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Scene Function GetCurrentScene() native
Scene Function GetCurrentScene() native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Did this object start in the tomb?
; Did this object start in the tomb?
if MyReference.GetCurrentScene() == None
if MyReference.GetCurrentScene() == None
   Debug.Trace("This reference isn't in any scene at all")
   Debug.Trace("This reference isn't in any scene at all")
endIf
endIf
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Navigation menu