1,482
edits
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 == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Scene Function GetCurrentScene() native | Scene Function GetCurrentScene() native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||