How to force third person camera and then put it back

Post » Fri May 27, 2011 7:40 pm

I have a special anim I play and I want to detect if the player is not in third person, and if so, force the camera to third person for the duration of my anim, and then set it back to first person.
User avatar
Elizabeth Davis
 
Posts: 3406
Joined: Sat Aug 18, 2007 10:30 am

Post » Fri May 27, 2011 10:08 am

Obse functions, may suffice

IsThirdPerson - To check if they're in Third Persion
IsIdlePlaying - To see if a special anim. is playing
TapControl - To press a button.

So maybe something like...
If ( IsThirdPerson == 0 )TapControl 14EndIf[Trigger your animation]


And when playing your animation...
If ( IsIdlePlaying YourAnimation == 1 )  Set AnimIsGoing to 1EndIfIf ( AnimIsGoing == 1 )  If ( IsIdlePlaying YourAnimation == 0 ) 	Set AnimIsGoing to 0	If ( IsThirdPerson == 1 )	  TapControl 14   EndIf  EndIfEndIf

User avatar
Phoenix Draven
 
Posts: 3443
Joined: Thu Jun 29, 2006 3:50 am

Post » Fri May 27, 2011 8:45 pm

Thanks Bro, I'll give that a go :) Us fellow vampire modders need to stick together, lol.
User avatar
Danielle Brown
 
Posts: 3380
Joined: Wed Sep 27, 2006 6:03 am


Return to IV - Oblivion