PDA

View Full Version : unstopable animation?


PepsiCola23
25/02/2018, 12:39 PM
How can i make an animation unstopable? I mean if he jumps or sprints the animation is getting canceled,how can i avoid that?

RedFusion
25/02/2018, 12:45 PM
Are you running any scripts that cancel animations when a button is pressed? If not, I suppose there is no other way than to simply re-apply the animation

Dayrion
25/02/2018, 12:47 PM
Freeze the player during the animation ?

PepsiCola23
25/02/2018, 12:55 PM
its a carry animation,.carrying a bag..and if i reaply it looks so bad cuz he cancels it and then it reapplies...

i`ve seen a server where you couldnt press jump or sprint when the carry anymation was happening.

kingmk
25/02/2018, 12:57 PM
Read here. http://wiki.sa-mp.com/wiki/ApplyAnimation

ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)

Set loop = 1, time = 0, freeze = 1;

RogueDrifter
25/02/2018, 12:59 PM
Freeze the player during the animation ?
Did you try this ^?

PepsiCola23
25/02/2018, 01:15 PM
solved

used SetPlayerSpecialAction(playerid, 25);