[FIXED] ClearAnimations not working? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [FIXED] ClearAnimations not working? (
/showthread.php?tid=413187)
[FIXED] ClearAnimations not working? -
MP2 - 04.02.2013
I applied this animation when players press the submission key:
ApplyAnimation(playerid, "PED", "sprint_civi",4.1,1,1,1,1,1);
and when they release it:
ClearAnimations(playerid);
(I've done debugging - it IS getting called okay). But the animation continues..?
Re: ClearAnimations not working? -
SuperViper - 04.02.2013
Try to use alternative animation clearing methods such as setting the player's position to his or her current position or applying
SPECIAL_ACTION_NONE to the player.
Re: ClearAnimations not working? -
MP2 - 04.02.2013
Ah, I found a fix for it. StopLoopingAnim (some custom function someone made). Thanks anyway.