OnPlayerCameraState - Form

SKSE Member of: Form Script

Listens for camera state changes, for this event to be received the form must have been registered previously via RegisterForCameraState.

SyntaxEdit

Event OnPlayerCameraState(int oldState, int newState)

ParametersEdit

  • oldState - The State which the camera used to be in.
  • newState - The State the Camera is now in.

Return ValueEdit

None

ExamplesEdit

Event OnInit()
	RegisterForCameraState();Register for camera states
EndEvent
 
Event OnPlayerCameraState(int oldState, int newState)
	if newState == 0
		Debug.Trace("The Camera is in First Person mode.")
	EndIf	
EndEvent

NotesEdit

  • valid States for Camera:
    • 0 - first person
    • 1 - auto vanity
    • 2 - VATS
    • 3 - free
    • 4 - iron sights
    • 5 - furniture
    • 6 - transition
    • 7 - tweenmenu
    • 8 - third person 1
    • 9 - third person 2
    • 10 - horse
    • 11 - bleedout
    • 12 - dragon

See AlsoEdit