Jump to content

Helpp!!! Animation Auto Stop


KAOSNox

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...