Anim when shot
#1

i wanted to make a gta 3-like effect for shotgun - player falls on their back when hit, facing his enemy. i've made this:
Код:
	if(weaponid == 25)
	{
		if(!IsPlayerInAnyVehicle(playerid))
		{
	    	new Float:issuerangle;
    		GetPlayerFacingAngle(issuerid, issuerangle);
	    	SetPlayerFacingAngle(playerid, issuerangle+180);
		ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3", 4.1, 0, 1, 1, 0, 1, 1);
		}
	}
but seems it doesn't work, nothing happens.

edit: i changed the code to:
Код:
	if(weaponid == 25)
	{
		if(!IsPlayerInAnyVehicle(playerid))
		{
	    	new Float:issuerangle;
    		GetPlayerFacingAngle(issuerid, issuerangle);
	    	SetPlayerFacingAngle(playerid, issuerangle+180);
	    	ClearAnimations(playerid);
			ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3", 4.1, false, true, true, true, true);
		}
	}
.
now it works, but 50% of the time, the shooter cant see the victims anim. any ideas?
Reply


Messages In This Thread
Anim when shot - by lucamsx - 23.12.2015, 18:19
Re: Anim when shot - by SupperRobin6394 - 23.12.2015, 20:37
Re: Anim when shot - by lucamsx - 23.12.2015, 20:58
Re: Anim when shot - by Sew_Sumi - 23.12.2015, 21:56
Re: Anim when shot - by lucamsx - 24.12.2015, 16:34
Re: Anim when shot - by TwinkiDaBoss - 24.12.2015, 16:48
Re: Anim when shot - by lucamsx - 24.12.2015, 18:14
Re: Anim when shot - by Abagail - 24.12.2015, 18:58
Re: Anim when shot - by Sew_Sumi - 24.12.2015, 19:20
Re: Anim when shot - by lucamsx - 25.12.2015, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)