Mod:Creation Kit/RegisterForCameraState - ScriptObject

F4SE Member of: Mod:Creation Kit/ScriptObject Script

Registers this script to receive the OnPlayerCameraState event. This event occurs whenever there is a change to the players camera state.

Syntax
Function RegisterForCameraState Native

Parameters

 * None

Return Value

 * None

Examples
RegisterForCameraState

Scriptname Example

Event OnInit RegisterForCameraState EndEvent

Event OnPlayerCameraState(int aiOldState, int aiNewState) Debug.Trace("The players camera state has changed.") EndEvent