Animation doesn't work - 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 doesn't work (
/showthread.php?tid=513566)
Animation doesn't work -
DarkLored - 17.05.2014
I am applying a animation but it doesn't do anything
here is my code:
pawn Код:
ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
Re: Animation doesn't work -
Dignity - 17.05.2014
Did you try applying the animation twice? You might need to pre-load the anim library.
http://forum.sa-mp.com/showpost.php?...5&postcount=13
Re: Animation doesn't work -
DarkLored - 17.05.2014
i did the preload and still nothing back then it worked for me i can't seem to figure out why it doesn't now
Re : Animation doesn't work -
Ramoboss - 17.05.2014
Try adding a return 1;
https://sampwiki.blast.hk/wiki/ApplyAnimation
Re: Animation doesn't work -
Hwang - 17.05.2014
Try this:
pawn Код:
ClearAnimations(playerid);
ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1),ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
Re: Animation doesn't work -
Threshold - 17.05.2014
Quote:
Originally Posted by Hwang
Try this:
pawn Код:
ClearAnimations(playerid); ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1),ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
|
He said he is already preloading the animations, you don't need to keep playing it twice..