Jump to content
Sign in to follow this  
Moon_chilD

Stop AI's animation

Recommended Posts

Hi guys,

another great and missleading title.

What I want to do:

A unit is making an animation. (Surrende, Hands behind his head also I said: UNITNAME disableAI "ANIM") He then joints (via a trigger) a group of AI. After another trigger is active the Group is walking to a waypoint.

Now I want to stop the Surrender animation, so the AI will walk with the group. How can I do that?

I tried it with switching to a walking animation, but he the just walks straight forward forever!

Many Greetings

Moony

Share this post


Link to post
Share on other sites

if you used

UNITNAME disableAI "ANIM"

to disable the animation you should be able to just re-enable it.

UNITNAME enableAI "ANIM"

Share this post


Link to post
Share on other sites

I tried. He then stays with his hands up, not moving and turns his direction depending on where his leader is. He is not walking or anything!

Share this post


Link to post
Share on other sites

there needs to be a small sleep between when animation is freed and player is ordered to move. I just tried this in editor and it worked fine

_p= [] spawn {bob enableAi "ANIM"; sleep 0.2; bob doMove (position player)};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×