Difference between revisions of "GetCameraState - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
m (Properly captialized display heading)
Line 1: Line 1:
{{DISPLAYTITLE:GetCameraState}}
{{DISPLAYTITLE:GetCameraStateb}}
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]

Revision as of 11:14, 15 September 2022

Member of: Game Script

Obtains the player's current camera state.

Syntax

int Function GetCameraState() native global

Parameters

None

Return Value

The current camera state.

Camera States

  • 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

Examples

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

See Also