Samp onplayertakedamage bodypart accuracy
#3

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
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); 
     }
}
Just a thought.
You misunderstood the question.
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)