Toribash
Original Post
Second Timers
Syntax: add_timeout(func,parameter,seconds,active)
There can only be 1 parameter at the moment.

Demo Timer.
--Demo Timeout
dofile("Timer.lua")
function Moo(M)
    echo(M)
    timeouts[1].Active = 0
end

add_timeout(Moo, "Moo", 1.25,1)
Last edited by Blam; Mar 29, 2008 at 11:26 AM.
:D
What does it do? Make each frame 1 second long?
~®awksoniC
---
/.---------====/:::::=:=:::::\====---------.\
|..D.....A....\...../...|./.../’’..../”’\...|\..|...|.../’’’..|
|..l \.../..\....\/\/....l.\..._/....\,,/...|..\|...|...\_,'.|
\.---------====\:::::=:=:::::/====---------./
After blah seconds it does blah.

Its just to make some scripting things easier
:D