Hero192 Posted January 20, 2016 Share Posted January 20, 2016 Hey guys, Can anyone tell me how can i remove the cool down animation, I mean when the timer of animation ends the player keep down on the ground, how to make when the timer of the animation ends the player get up normaly like the first time? That's what I did setPedAnimation(source, "ped", "KO_shot_stom", 5500, false, true, false) and much thanks for who gonna help me Link to comment
tosfera Posted January 20, 2016 Share Posted January 20, 2016 Set a timer yourself, when the timer runs out don't provide an animation block-name to reset it. setPedAnimation ( source ) You can also try to use the 'freezeLastFrame' parameter, add 1 false to your line. Link to comment
Hero192 Posted January 20, 2016 Author Share Posted January 20, 2016 Hey first of, thanks for your answer, I tried that Is that correct ? function (source) setPedAnimation ( source, "ped", "KO_shot_stom" ) setTimer ( function(source) setPedAnimation(source) end, 5000, 1, source ) setPedAnimation ( source) end Link to comment
tosfera Posted January 20, 2016 Share Posted January 20, 2016 Remove line 4 and it sure is correct. 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