Difference between revisions of "RegisterForCameraState - ScriptObject"

Jump to navigation Jump to search
added page descriptions and example
imported>Qazaaq
(flagged incomplete)
imported>Qazaaq
(added page descriptions and example)
Line 3: Line 3:
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}


Placeholder Description.
Registers this script to receive the [[OnPlayerCameraState - ScriptObject|OnPlayerCameraState]] event.
This event occurs whenever there is a change to the players camera state.


== Syntax ==
== Syntax ==
Line 18: Line 19:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Placeholder Code.
RegisterForCameraState()
</source>
 
 
<source lang="papyrus">
Scriptname Example extends ScriptObject
 
Event OnInit()
RegisterForCameraState()
EndEvent
 
Event OnPlayerCameraState(int aiOldState, int aiNewState)
Debug.Trace("The players camera state has changed.")
EndEvent
</source>
</source>


== See Also ==
== See Also ==
*[[ScriptObject Script]]
*[[ScriptObject Script]]
*[[OnPlayerCameraState - ScriptObject]]




Anonymous user

Navigation menu