Breaking out of a player idle

Post » Tue Jun 19, 2012 2:32 am

I'm currently using PlayIdle in a script to make the player perform eating and drinking animations. Annoyingly, there is no "StopIdle" command - the idle continues to loop, and the player is frozen out of the controls unless they draw their weapon or jump. Is there some way to return the player to normal after a few seconds of playing the idle animation?
User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Post » Tue Jun 19, 2012 3:26 am

I guess you could try running a second PlayIdle command like this:

Game.GetPlayer().PlayIdle(IdlePlayerStop)

(IdlePlayerStop is located in the animations window under ActionIdleStop --> IdleStopRoot)
User avatar
Samantha hulme
 
Posts: 3373
Joined: Wed Jun 21, 2006 4:22 pm

Post » Tue Jun 19, 2012 3:28 am

Thanks, that one didn't work but you were on the right track. I tried a few others, and

Game.GetPlayer().PlayIdle(IdleStop_Loose)

works perfectly. :)

Interestingly, some other idle animations only play once (like the IdleDrinkPotion animation) so nothing else is needed. They'll also cancel you out of looping animations after playing, the same way IdleStop_Loose will.
User avatar
Joanne
 
Posts: 3357
Joined: Fri Oct 27, 2006 1:25 pm

Post » Tue Jun 19, 2012 2:15 am

Thanks, that one didn't work but you were on the right track. I tried a few others, and

Game.GetPlayer().PlayIdle(IdleStop_Loose)

works perfectly. :smile:

Interestingly, some other idle animations only play once (like the IdleDrinkPotion animation) so nothing else is needed. They'll also cancel you out of looping animations after playing, the same way IdleStop_Loose will.

Yes I know, I've worked a lot with these idles for my dual wield mod, and it's really weird how some idles work as expected and some are just.. weird :P
User avatar
Steve Fallon
 
Posts: 3503
Joined: Thu Aug 23, 2007 12:29 am

Post » Mon Jun 18, 2012 11:07 pm

This was a doubt I also had about idles. Thank for the explanation Imp of the Perverse :smile:
User avatar
I love YOu
 
Posts: 3505
Joined: Wed Aug 09, 2006 12:05 pm


Return to V - Skyrim