OnLoad - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Add note that OnLoad doesn't fire for disabled objects)
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnLoad()
Event OnLoad()
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 15: Line 15:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Event OnLoad()
Event OnLoad()
   Debug.Trace("This object is loaded, playing animations should work now")
   Debug.Trace("This object is loaded, playing animations should work now")
endEvent
endEvent
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu