Difference between revisions of "RegisterForCameraState - ScriptObject"
Jump to navigation
Jump to search
imported>Qazaaq (removed incomplete) |
imported>Qazaaq m (tabs to spaces) |
||
(One intermediate revision by the same user not shown) | |||
Line 23: | Line 23: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Scriptname Example | Scriptname Example | ||
Event OnInit() | Event OnInit() | ||
RegisterForCameraState() | |||
EndEvent | EndEvent | ||
Event OnPlayerCameraState(int aiOldState, int aiNewState) | Event OnPlayerCameraState(int aiOldState, int aiNewState) | ||
Debug.Trace("The players camera state has changed.") | |||
EndEvent | EndEvent | ||
</source> | </source> |
Latest revision as of 19:45, 25 January 2018
F4SE Member of: ScriptObject Script
Requires F4SE version 0.3.1 or higher.
Registers this script to receive the OnPlayerCameraState event. This event occurs whenever there is a change to the players camera state.
Syntax[edit | edit source]
Function RegisterForCameraState() Native
Parameters[edit | edit source]
- None
Return Value[edit | edit source]
- None
Examples[edit | edit source]
RegisterForCameraState()
Scriptname Example
Event OnInit()
RegisterForCameraState()
EndEvent
Event OnPlayerCameraState(int aiOldState, int aiNewState)
Debug.Trace("The players camera state has changed.")
EndEvent