KAOSNox Posted July 15, 2017 Share Posted July 15, 2017 Hi, can you help me? I want this animation to start and stop at 5 seconds and at 10 seconds to return the animation function animacion(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim,5000,1) end addCommandHandler ("toxic", animacion) function pararanim(tp) setPedAnimation(tp,false) setTimer(animacion,3000,1) end addCommandHandler ("parar", pararanim) setPedAnimation( source, "GANGS", "prtial_gngtlkB", 1, false, true, true, true, false ) setTimer(function() setPedAnimation(source, false) end, 1000, 1) Try doing it with timers but not for animation Link to comment
Gordon_G Posted July 15, 2017 Share Posted July 15, 2017 setTimer(pararanim, 5000, 1, source) at line 4. 1 Link to comment
KAOSNox Posted July 16, 2017 Author Share Posted July 16, 2017 hello the animation not start with the timer The animation stops the timer but does not start after the other 10 seconds function animation(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim, 5000, 2, source) end addCommandHandler ("toxic", animacion) function stopanimation(tp) setPedAnimation(tp,false) setTimer(animacion, 10000, 1) end Link to comment
Gordon_G Posted July 16, 2017 Share Posted July 16, 2017 function animation(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim, 5000, 2, source) end addCommandHandler ("toxic", animacion) function stopanimation(tp) setPedAnimation(tp,false) setTimer(animacion, 10000, 1, tp) end 1 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