How do you snap player out of an idle?

Post » Thu Jun 21, 2012 11:09 pm

For example if you did this:

playerActor.PlayIdle(IdleEatingStandingStart)

He starts eating bread.

How do you get him to snap out of the idle using a script and not have the player touch the keyboard. If you jump it will get you out of the idle but I would like a way to get out using a script function.

I am open to the idea of using the SendAnimationEvent function instead of playIdle if that makes it easier.

Thanks
User avatar
Lauren Dale
 
Posts: 3491
Joined: Tue Jul 04, 2006 8:57 am

Post » Thu Jun 21, 2012 7:00 pm

Try playing IdleForceDefaultState
User avatar
Your Mum
 
Posts: 3434
Joined: Sun Jun 25, 2006 6:23 pm

Post » Thu Jun 21, 2012 7:04 pm

Cool thanks, had to send it using the Debug.SendAnimationEvent(playerObject, "IdleForceDefaultState") but it worked perfectly.
User avatar
Vincent Joe
 
Posts: 3370
Joined: Wed Sep 26, 2007 1:13 pm


Return to V - Skyrim