12.04.2017, 12:29
Quote:
I'm not sure how that happens but I recommend you using OnPlayerUpdate for your animation.
You won't have to repeat the anim in OnPlayerTakeDamage and it'll be impossible for the player to get out of the animation or move from their death position. Example: Код:
OnPlayerUpdate(playerid) { if(BodyPart[playerid][Injured]) { ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.1,1,0,0,0,0,1); } } |
I have something to prevent the player leaving the animation/position.
But when the player is on the ground. And you shoot on his head, the script thinks you shoot on his legs.