Background for Fallout 4
Member of the ScriptObject script
voidfunctionRegisterForCameraState()Native

Description

Wiki Description

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


Caveats


Examples

RegisterForCameraState()
Scriptname Example

Event OnInit()
    RegisterForCameraState()
EndEvent

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

Auto-Generated Example

myScriptObject__toCallFunctionOn.RegisterForCameraState()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.