29.01.2013, 14:34
(
Последний раз редактировалось SKAzini; 25.02.2013 в 08:34.
)
Quote:
Now i'm having this problem that if the player which is laying on the ground in this animation, and he gets shot, the anim stops and he can move freely. I've temporary fixed this by playing the anim again OnPlayerTakeDamage, but the player will jump up, out of the anim and then back when shot, which is something I'd like not to happend..
|
My problem is that when player gets hit, it cancels the animation and my temporary fix is to reapply the animation when being hit but this makes the player go up and down when hit.
How would I go about freezing a player in a death anim, unable to jump away, still being able to move the camera, and still being vulnerable, in the most efficient way?
New code:
pawn Код:
ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 0, 1, 1, 1, 300000, 1);