Ryuto Posted January 22, 2023 Share Posted January 22, 2023 I want to create a system of jumping in the air, but I noticed that when I run an animation in the air or on a fall it doesn't play the animation, it only does it when it hits the ground. How can I run normal animations in the air? What functions can I use? Link to comment
Rougue90 Posted January 23, 2023 Share Posted January 23, 2023 Hi, you can still be using setPedAnimation() but you must give the right parameters. If you want that the animation play whenever the player is falling just set parameter 7, to false. Something like this: function animacao(player) setPedAnimation(player,'kart', 'kart_getin_lhs', 5000, true, true, false, false) --the first false in this parameter, enable the animation to play while the player is falling, if it's true, than it wait the falling animation to end, so it can be started end addCommandHandler('anim', animacao,false, false) Link to comment
Ryuto Posted February 2, 2023 Author Share Posted February 2, 2023 On 1/22/2023 at 10:11 PM, Rougue90 said: Hi, you can still be using setPedAnimation() but you must give the right parameters. If you want that the animation play whenever the player is falling just set parameter 7, to false. Something like this: function animacao(player) setPedAnimation(player,'kart', 'kart_getin_lhs', 5000, true, true, false, false) --the first false in this parameter, enable the animation to play while the player is falling, if it's true, than it wait the falling animation to end, so it can be started end addCommandHandler('anim', animacao,false, false) I have another problem, the default animation has a forward movement when it is on the ground (it is a forward jump) but when it is in the air the animation is played statically without the forward movement. How can I give it that movement while in the air? I hope I explained myself well Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now