Difference between revisions of "RegisterForCameraState - ScriptObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(flagged incomplete)
imported>Qazaaq
m (tabs to spaces)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:Incomplete Article}}
'''F4SE Member of:''' [[ScriptObject Script]]
'''F4SE Member of:''' [[ScriptObject Script]]
{{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 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Placeholder Code.
RegisterForCameraState()
</source>
 
 
<source lang="papyrus">
Scriptname Example
 
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]]





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

See Also[edit | edit source]