Difference between revisions of "Os.startTimer"

From ComputerCraft Wiki
Jump to: navigation, search
(it returns an int not a table)
(Changing int to number)
Line 4: Line 4:
 
  |args=[[float (type)|float]] time
 
  |args=[[float (type)|float]] time
 
  |api=OS
 
  |api=OS
  |returns=[[int (type)|int]] timerID
+
  |returns={{type|number}} 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 an int 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.

Revision as of 12:47, 18 July 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 number timerID
Part of ComputerCraft
API OS