SA-MP Forums Archive
Leg broken anim - 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: Leg broken anim (/showthread.php?tid=626632)



Leg broken anim - AndreiWow - 17.01.2017

I am trying to play an anim if you get hit in the leg but the anim is not working, why?

Код:
if(issuerid != INVALID_PLAYER_ID && weaponid >= 22 && weaponid <= 38 && (bodypart == 7 || bodypart == 8))
	{
		if(pLegBroken[playerid] == false)
		{
			pLegBroken[playerid] = true;
			ApplyAnimation(playerid, "PED", "CLIMB_jump2fall", 4.1, 0, 1, 1, 0, 1000, 1);
			SetTimerEx("LegShot", 12000, true, "i", playerid);
			SCM(playerid, COLOR_LIGHTRED, "-> Ai fost impuscat in picior, nu vei mai putea alerga sau sari.");
		}
	}
You only get the message and get stuck for like a second but the anim is not playing..


Re: Leg broken anim - AndreiWow - 18.01.2017

Anyone?


Re: Leg broken anim - JaydenJason - 18.01.2017

Код:
ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 1, 1, 1);



Re: Leg broken anim - RyderX - 18.01.2017

SA:MP Animations: https://sampwiki.blast.hk/wiki/Animations
SA:MP Howto Applying Animations: https://sampwiki.blast.hk/wiki/ApplyAnimation


Re: Leg broken anim - AndreiWow - 18.01.2017

Thanks guys!


Re: Leg broken anim - AndreiWow - 18.01.2017

ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 1, 1, 1);


It freeze the player for like a second at the end of the anim.

If I do this, the anim won't work:
ApplyAnimation(playerid, "PED", "FALL_COLLAPSE", 4.0, 0, 1, 1, 0, 1, 1);