SA-MP Forums Archive
sword_block animation loop issue - 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: sword_block animation loop issue (/showthread.php?tid=433129)



sword_block animation loop issue - Will77 - 26.04.2013

Right, so I'm adding an animation to my server. Heres the issue I have.

Код:
		case 2: ApplyAnimation(playerid,"SWORD","sword_block",4.0,0,0,0,0,0);
This has made it so that they will do the animation, once as I needed. However, when the animation is done the character is set back to standing idle. I wanna make it so when the animation ends, it stops with his hands out.

Im trying to get it like this:

[ame]http://www.youtube.com/watch?v=jvHPD9fmlnA[/ame]


Re: sword_block animation loop issue - AaronKillz - 26.04.2013

Make a timer.
When the timer ends, add ClearAnimations(playerid);


Re: sword_block animation loop issue - Will77 - 26.04.2013

Right, so I got it paused. However I cant make it so the character can run within the animation (like he should be able to). Any suggestions?


Re: sword_block animation loop issue - Onfroi - 26.04.2013

pawn Код:
ApplyAnimation(playerid,"SWORD","sword_block",4.0,1,1,1,0,0);
Source;


Re: sword_block animation loop issue - Will77 - 26.04.2013

Got it as I needed it with:

Код:
		case 2: OnePlayAnim(playerid,"SWORD","sword_block",50.0,0, 1,0,1,1);