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



Animation Name/Help? - jakejohnsonusa - 21.08.2014

Does anyone know if the animation in single player caused by killing someone in their car can be called manually in SA-MP?

If so, does anyone know what it is called?

Screenshots of the animation:




Basically I'm looking for an animation to apply to drivers/passengers of vehicles who are dying, so if anyone has any other recommendations on something else, that'd be great as well.

The problem with most 'sick' or 'dying' animations is that the majority of them do not function correctly/look right when someone is in a vehicle- but perhaps there is a better way to do it?


Re: Animation Name/Help? - Jstylezzz - 21.08.2014

It's this one if I remember correctly.
pawn Код:
ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
EDIT: Oh shit, I just realized you wanted the one in the car :P Lemme check if I know which one that is.

EDIT2:

Perhaps it's one of these 2?
Код:
 CAR_dead_LHS
CAR_dead_RHS
Both from the 'ped' library. Code would be
pawn Код:
ApplyAnimation(playerid, "ped", "CAR_dead_LHS", 4.0, 1, 0, 0, 0, 0);  
//or
ApplyAnimation(playerid, "ped", "CAR_dead_RHS p", 4.0, 1, 0, 0, 0, 0);



Re: Animation Name/Help? - jakejohnsonusa - 21.08.2014

Quote:

CAR_dead_LHS
CAR_dead_RHS

Thanks these were exactly what I was looking for!

+1


Re: Animation Name/Help? - davve95 - 21.08.2014

It would be nicer if this amination was default in sa-mp.
Instead of lying under the car :S..


Re: Animation Name/Help? - jakejohnsonusa - 21.08.2014

The player did not lie under the car for me when I applied it.

Here is the code I used for anyone who may have issues with this in the future:

pawn Код:
ApplyAnimation(playerid,"PED","CAR_dead_LHS",4.1,0,1,1,1,1);
ApplyAnimation(playerid,"PED","CAR_dead_RHS",4.1,0,1,1,1,1);