Jump to content
Sign in to follow this  
gopgop

How to toggle an animation?

Recommended Posts

I have an animation I want to play on my character... currently im using unit playMove "XXX" and it doesnt work.. it plays the animation once and stops.. tried using switchMove doesnt work either... tried doing it in a while loop, too complicated and because you have to have sleep the animation goes insane.. How would you toggle this animation?

Share this post


Link to post
Share on other sites

By toggle you mean loop?

If so, try the following:

//Disable Ai ability to change animation by itself
_unit disableAi "ANIM";

//Play the animation, he should now loop the same animation over and over again
_unit playMove "someAnim";

Share this post


Link to post
Share on other sites

during a cutscene:

player enableSimulation false;
player action ["GunLightOn", player];
player playMoveNow "aidlpercmstpslowwrfldnon_player_0s";

sleep 10;

player switchMove "";
player enableSimulation true;

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  

×