SA-MP Forums Archive
Make a continuous animation without resets - 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: Make a continuous animation without resets (/showthread.php?tid=550395)



Make a continuous animation without resets - dionisak0s - 12.12.2014

I would like to set this animation to be continuous, without stopping and doing it back again (looping) just do the same action the whole time until the player stops doing the animation.

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0, 1);


Re: Make a continuous animation without resets - Sledgehammer - 12.12.2014

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 0, 0, 0, 0, 1);

https://sampwiki.blast.hk/wiki/ApplyAnimation


Re: Make a continuous animation without resets - dionisak0s - 12.12.2014

Quote:
Originally Posted by Death1300
View Post
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 0, 0, 0, 0, 1);

https://sampwiki.blast.hk/wiki/ApplyAnimation
No, I already tryed that. It does the animation again and again but I want the character to remain like he is without standing up. Next time read my post carefully.


Re: Make a continuous animation without resets - Sledgehammer - 12.12.2014

ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 1, 0, 1); - Try this. (Not to sure if it will work or not)


Re: Make a continuous animation without resets - dionisak0s - 12.12.2014

Quote:
Originally Posted by Death1300
View Post
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 1, 0, 1); - Try this. (Not to sure if it will work or not)
No it is not going to work anyways, I don't even have to try it. It will freeze my character after the animation is over.


Re: Make a continuous animation without resets - dionisak0s - 13.12.2014

Fixed, I had to do it like this:

pawn Code:
ApplyAnimation(playerid, "BOMBER", "BOM_PLANT_LOOP", 4.0, 1, 0, 0, 0, 0, 1);