Quick Questions, Quick Answers - Thread #43

Post » Wed Aug 13, 2014 4:13 pm

And I might reprise my question from the last post of the last thread:

Is there a method to tell if the PC is in 1st or 3rd person view?

I'd like the counting chest I mentioned earlier to put the player back in the state they were in when they opened the chest.

I'm sure I saw a method for this on the CK wiki, but I can't find it now and my google-fu has failed me."first person" "third person" "POV" - I can find how to change pov but not how to detect it.

User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Wed Aug 13, 2014 1:28 pm

SKSE has Game.GetCameraState(), which will return an integer. 0 (1st person) and 9 (3rd person) are the values you would be interested in.

Spoiler
; Returns the character's current camera state; 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 
User avatar
Dan Wright
 
Posts: 3308
Joined: Mon Jul 16, 2007 8:40 am


Return to V - Skyrim