Animation
#1

Hello, I'm working on an injury system now.
So when player is injured then he is in the crack animation.
Код:
ApplyAnimation(playerid, "CRACK", "crckdeth4", 4.0, 1, 0, 0, 1, 0, 1);
So what I want to do is if script detects that player is not in that animation anymore while injured it puts him back in this animation. I know it's done with GetPlayerAnimationIndex, but how?
Reply
#2

I found that myself. This is for crckdeth2 though not crackdeth4
This is what I put under OnPlayerUpdate:
Код:
if (Injured[playerid] == 1 && GetPlayerAnimationIndex(playerid) != 386)
{
	ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1);
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)