SA-MP Forums Archive
ApplyAnimation - I make it once, it does it twice? - 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: ApplyAnimation - I make it once, it does it twice? (/showthread.php?tid=317072)



ApplyAnimation - I make it once, it does it twice? - Da' J' - 09.02.2012

As the title says, i've put ApplyAnimation in a script, and made it to make an animation which takes 0.8 seconds, when something happens. Well it does it twice.. Wtf? What i did wrong?


Re: ApplyAnimation - I make it once, it does it twice? - Universal - 09.02.2012

Show us the code?


Re: ApplyAnimation - I make it once, it does it twice? - Da' J' - 09.02.2012

This is the ApplyAnimation what i'm using... Which ain't working. :S
pawn Код:
ApplyAnimation(playerid,"PED","HIT_back",4.1,0,0,0,0,1000,1);



Re: ApplyAnimation - I make it once, it does it twice? - Fires - 09.02.2012

Try

pawn Код:
ApplyAnimation(playerid,"PED","HIT_back",4.0,1,0,0,0,-1);



Re: ApplyAnimation - I make it once, it does it twice? - Da' J' - 09.02.2012

Erm, that makes it repeat over and over again non-stop. :/

Edit: Nevermind, got it work! I edited that "1" to "0" which you gave there.