SA-MP Forums Archive
Animation - 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: Animation (/showthread.php?tid=505562)



Animation - Ananisiki - 09.04.2014

Hi,, does anyone know the animation like the skin does a backflip and falls down on the ground like a car hit him? he fly a few meters back, really need this....


Re: Animation - Lloyde - 09.04.2014

AHAHAHAHA


Re: Animation - Twizted - 09.04.2014

pawn Код:
CMD:lifejump(playerid, params[])
{
ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
return 1;
}
It's usually called "life jump", but whatever you wish to do with it, the animation is called EV_dive.


Re: Animation - iBanner - 09.04.2014

Something like a ragdoll like in gta4 when you got hit by a car you flew away? Hmm @twizted how about if a car hits him? can the animation you posted be applied? without typing the command.

Is there any callback like IsVehicleHitPlayer? lol


Re: Animation - Ananisiki - 09.04.2014

I dont really know, i punched the admin and flew away a few meters, am going to do this but i dont know the animation.....


Re: Animation - Twizted - 09.04.2014

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{

    if(issuerid != INVALID_PLAYER_ID && weaponid == 49 && bodypart == 3) //work with the bodypart{
   
        ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
        SetPlayerHealth(playerid, 10.0);   

    }
    return 1;
}
I did not even check if it works, @iBanner.


Re: Animation - Lloyde - 09.04.2014

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{

    if(issuerid != INVALID_PLAYER_ID && weaponid == 49 && bodypart == 3) //work with the bodypart{
   
        ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
        SetPlayerHealth(playerid, 10.0);    

    }
    return 1;
}



Re: Animation - Ananisiki - 10.04.2014

Hm... Almost this one but he is flying back instead of forward.....


Re: Animation - Ananisiki - 11.04.2014

Bump


Re: Animation - Ananisiki - 26.04.2014

Bump