Background for Fallout 4
Member of the Game script
intfunctionGetCameraState()NativeGlobal

Description

Wiki Description

F4SE Member of: Game

Obtains the player's current camera state.

Documentation Comment

returns the current camera state
-1 - unknown/there is no camera yet
0 - first person
1 - auto vanity
2 - VATS
3 - free
4 - iron sights
5 - transition
6 - tween menu
7 - third person 1
8 - third person 2
9 - furniture
10 - horse
11 - bleedout
12 - dialogue


Examples

If Game.GetCameraState() == 0
    Debug.Trace("The Player camera is in first person")
EndIf

Auto-Generated Example

int returnedValue = Game.GetCameraState()

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.