How do I make a wait time between 2 commands.
For example:
[CODE]
ply:ViewPunch(Angle(5, 0, 0));
--Wait 0,5 secs here, then do--
ply:SetLocalVelocity(ply:EyeAngles():Right()*-400)
[/CODE]
Thanks! I already tried it with "Timer.Simple" but it didnt work.
Just use the timer again and post your code.
[CODE]deleted
[/CODE]
Thats it. I put "--I need to add the timer here--" where I need the timer to be, (or at least where I think the timer needs to) IDK how to use the timer thingy.
Maybe this?
[CODE]
ply:ViewPunch(Angle(5, 0, 0));
timer.Simple(0.5, function()
ply:SetLocalVelocity(ply:EyeAngles():Right()*-400)
end)
[/CODE]
[editline]2nd February 2014[/editline]
Oh wait, that won't work. There is no wait command sorry.
[QUOTE=Winter;43757719]Maybe this?
[CODE]
ply:ViewPunch(Angle(5, 0, 0));
timer.Simple(0.5, function()
ply:SetLocalVelocity(ply:EyeAngles():Right()*-400)
end)
[/CODE]
[editline]2nd February 2014[/editline]
Oh wait, that won't work. There is no wait command sorry.[/QUOTE]
:S. Well, thank you anyway.
Sorry, you need to Log In to post a reply to this thread.