Difference between revisions of "Os.startTimer"
From ComputerCraft Wiki
m (Table -> Table (type)) |
(it returns an int not a table) |
||
Line 4: | Line 4: | ||
|args=[[float (type)|float]] time | |args=[[float (type)|float]] time | ||
|api=OS | |api=OS | ||
− | |returns=[[ | + | |returns=[[int (type)|int]] timerID |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Adds a timer which will fire a "timer" event once after <var>time</var> seconds have passed. It returns | + | |desc=Adds a timer which will fire a "timer" event once after <var>time</var> seconds have passed. It returns an int which acts as a unique ID for the timer. |
|examples= | |examples= | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Revision as of 00:05, 23 April 2013
Function os.startTimer | |
Adds a timer which will fire a "timer" event once after time seconds have passed. It returns an int which acts as a unique ID for the timer. | |
Syntax | os.startTimer(float time) |
Returns | int timerID |
Part of | ComputerCraft |
API | OS |