SA-MP Forums Archive
Broken leg animation like on LSRP - 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: Broken leg animation like on LSRP (/showthread.php?tid=615677)



Broken leg animation like on LSRP - CoachCarter - 25.08.2016

0:13 The broken leg animation

https://www.youtube.com/watch?v=orXS8xfKtyM


I found out it's this animation:
Код:
 ApplyAnimation(playerid, "PED", "FALL_fall", 4.1, 0, 1, 1, 0, 0);
but the thing is when I am injured script does it all wrong it's doing the whole falling animation:
http://imgur.com/daqrheA

Can anybody help me, how can I make character do the animation like it's in the video.

Thank you.


Re: Broken leg animation like on LSRP - Kwarde - 26.08.2016

Do you know the parameters of this function?
(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
So, looking at your provided ApplyAnimation():
playerid=playerid
animlib[] = "PED"
animname[] = "FALL_fall"
fDelta=4.1
loop=0
lockx=1 (Should be 0)
locky=1 (Should be 0)
freeze=0
time=0 (Setting to 0 will start an infinite loop. Try using something like 750)

Код:
ApplyAnimation(playerid, "PED", "FALL_fall", 4.1, 0, 0, 0, 0, 750, 0);
(The last 0 is forcesync).

Please note I am not certain this will work, but I think it might. If the animation is going too long, decrease the time parameter.


Re: Broken leg animation like on LSRP - CoachCarter - 26.08.2016

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Do you know the parameters of this function?
(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
So, looking at your provided ApplyAnimation():
playerid=playerid
animlib[] = "PED"
animname[] = "FALL_fall"
fDelta=4.1
loop=0
lockx=1 (Should be 0)
locky=1 (Should be 0)
freeze=0
time=0 (Setting to 0 will start an infinite loop. Try using something like 750)

Код:
ApplyAnimation(playerid, "PED", "FALL_fall", 4.1, 0, 0, 0, 0, 750, 0);
(The last 0 is forcesync).

Please note I am not certain this will work, but I think it might. If the animation is going too long, decrease the time parameter.
Yeah I tried what you suggested, but 750 is too high, I tried it on 350 and it was good but the problem still remains, animation isn't similar as it is in the video I think they're using a different animation.

Character is still doing this kind of animation: http://imgur.com/daqrheA , but it's doing it for 0.35 seconds


Re: Broken leg animation like on LSRP - AMouldyLemon - 26.08.2016

I think the animation you're after is "FALL_collapse" in the "PED" Library


Re: Broken leg animation like on LSRP - GoldenLion - 26.08.2016

Quote:
Originally Posted by AMouldyLemon
Посмотреть сообщение
I think the animation you're after is "FALL_collapse" in the "PED" Library
Yes, it is. I use that animation in my script, it's the correct one. :P


Re: Broken leg animation like on LSRP - CoachCarter - 27.08.2016

Quote:
Originally Posted by AMouldyLemon
Посмотреть сообщение
I think the animation you're after is "FALL_collapse" in the "PED" Library
Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Yes, it is. I use that animation in my script, it's the correct one. :P
Yes , you're right. I tried every single fall animation and found it yesterday thanks anyway rep+ both of you