SA-MP Forums Archive
Animation - 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: Animation (/showthread.php?tid=380230)



Animation - MechaTech - 24.09.2012

I've 2 problems. When I want to apply an animation to a player with a command, it does nothing, but when I use the command for a second time, then it works. Is this a bug?

Command:
Код:
CMD:taze(playerid, params[])
{
    ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
    return 1;
}
And my second problem is: ClearAnimations(playerid); isn't stopping my animation, it just keeps doing the animation.

Sorry for my bad english.


Re: Animation - Kyle - 24.09.2012

Make sure you preload the animations on player connect.


Re: Animation - MechaTech - 25.09.2012

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Make sure you preload the animations on player connect.
Thanks that worked, but now the other problem. I can't stop the animation.


Re: Animation - mamorunl - 25.09.2012

Sometimes an animation requires an ending animation to stop the animation, in other situations a simple ClearAnimations() works.


Re: Animation - Benzke - 25.09.2012

Try to add these in your /stopanim command.
pawn Код:
ClearAnimations(playerid);
StopLoopingAnimation(playerid);



Re: Animation - MechaTech - 25.09.2012

Quote:
Originally Posted by Benzke
Посмотреть сообщение
Try to add these in your /stopanim command.
pawn Код:
ClearAnimations(playerid);
StopLoopingAnimation(playerid);
error 017: undefined symbol "StopLoopingAnimation"

Is there a stock for this or something because I can't find it.


Re: Animation - Benzke - 25.09.2012

pawn Код:
StopLoopingAnimation(playerid)
{
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}
Here.


Re: Animation - Kyle - 25.09.2012

Check when they enter the secondary attack key, if they do it and an animation is playing clear the animations.