Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
DieselJC

End Animation?

Recommended Posts

So I got an animation to work with the mouse scroll wheel and an sqf but after the animation I cant get the player back to normal.

How would I end this animation or set it to a timeout?

 

I have this as an sqf

 

screwyou.sqf

 

player switchMove "acts_briefing_sb_in"

 

 

And I use this in the players init field.

 

player addAction ["Screw You", "screwyou.sqf"];

 

The animation is "acts_briefing_sb_in" the soldier giving the middle finger.

 

 

Any help would be great.

 

Diesel

 

Share this post


Link to post
Share on other sites

player switchmove ""

Please note, that this doesn't sync properly in mp... :( For the others clients, the Animation will keep going.

Share this post


Link to post
Share on other sites
player switchMove "acts_briefing_sb_in";
sleep 10;
player switchMove "";

Or

[player, "acts_briefing_sb_in"] remoteExec ["switchMove", 0];
sleep 10;
[player, ""] remoteExec ["switchMove", 0];
  • Like 1

Share this post


Link to post
Share on other sites

Bnae nailed it for MP usage.  I'm using sleep 7 for ending this animation currently.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×