Broken leg animation like on LSRP
#1

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.
Reply
#2

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.
Reply
#3

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
Reply
#4

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

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)