23.12.2015, 18:19
(
Последний раз редактировалось lucamsx; 23.12.2015 в 19:02.
)
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:
but seems it doesn't work, nothing happens.
edit: i changed the code to:
.
now it works, but 50% of the time, the shooter cant see the victims anim. any ideas?
Код:
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);
}
}
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?


