Difference between revisions of "Os.startTimer"

From ComputerCraft Wiki
Jump to: navigation, search
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=[[Table_(type)|Table]] timerID
+
  |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 a table which acts as a unique ID for the timer.
+
  |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


Grid Redstone.png  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