Jump to content
Sign in to follow this  
anthonyfromtheuk

end animation go back to original state

Recommended Posts

I would like my unit named "S2" to still be useful after he has performed his animations, in this case a salute.

My original trigger is this to make S2 salute

S2 switchmove "AmovPercMstpSrasWrflDnon_Salute"; S2 disableAI "ANIM";

And then I have been using this to end the salute animation.

S2 switchmove "AidlPercMstpSrasWrflDnon_AI"; S2 disableAI "ANIM"; 

This looks like it works but when I have enemy units go anywhere near the S2 he just stays, standing there doing nothing. What do i need to do to make him come out of his animation and actually still be useful instead of just standing there like a tree? i've tried using

s2 switchmove "";

---------- Post added at 18:12 ---------- Previous post was at 17:59 ----------

Definitely something to do with my triggers. the trigger set to end the animation runs whenever the officer isnt there so causing them to just stick in the standing animation. Cannot really get my head around how to get this to work smoothly, IE they are in a normal state until the officer comes by and then they salute and once he leaves they go back to normal state.

Tried using triggeractivated but that only works until he walks past once and then they get stuck in loop again.

Share this post


Link to post
Share on other sites

Maybe something like this?

To start saluting:

S2 switchmove "AmovPercMstpSrasWrflDnon_Salute";
S2 enablesimulation false;

To stop saluting:

S2 enablesimualtion true;
S2 switchmove "AidlPercMstpSrasWrflDnon_AI";

That should work.

Edited by dcthehole

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  

×