SA-MP Forums Archive
Death animation restart when player takes damage. - 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: Death animation restart when player takes damage. (/showthread.php?tid=626355)



Death animation restart when player takes damage. - rt-2 - 14.01.2017

Hi,
I am using a custom death animation, the problem is that when someone shoots the player, the animation starts over for the attacking player.
So if player 2 punches player 1 while the death animation is over (player on the ground like it should), player 2 sees player 1 redo the falling animation.

I have tried playing with different animation, different animation settings, and the TogglePlayerControllable, now I need some guidance.

The animation does not restart for player 1, but I am using some RPC to sync the animations when streaming in, but the settings are supposed to be exactly the same.

Has any of you experienced what I am talking about?

Thank you,
rt-2


Re: Death animation restart when player takes damage. - rt-2 - 14.01.2017

Ok this is what I found, I tried again and again the same thing and found this:
ApplyAnimation(playerid, LIBRARY, NAME,4.1,0,1,1,1,1000,1);
This way only the problem is not present.

Thanks anyway,
rt-2


Re: Death animation restart when player takes damage. - iLearner - 14.01.2017

So is it solved?


Re: Death animation restart when player takes damage. - rt-2 - 14.01.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
So is it solved?
Yes, with the parameters I posted on the second message it works, the player stays stopped at the end of the animation when taking damage, instead of the animation restarting..

Thank you