GetCameraState - Game

Revision as of 11:24, 15 September 2022 by EgoBallistic (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

F4SE Member of: Game Script
Requires F4SE version 0.6.16 or higher.

Obtains the player's current camera state.

SyntaxEdit

int Function GetCameraState() native global

ParametersEdit

None

Return ValueEdit

The current camera state.

Camera StatesEdit

  • 0 - First Person
  • 1 - Auto Vanity
  • 2 - VATS
  • 3 - Free
  • 4 - Iron Sights
  • 5 - Transition
  • 6 - Tween Menu
  • 7 - ThirdPerson1
  • 8 - ThirdPerson2
  • 9 - Furniture
  • 10 - Horse
  • 11 - Bleedout
  • 12 - Dialogue

ExamplesEdit

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

See AlsoEdit