Difference between revisions of "Os.startTimer"

From ComputerCraft Wiki
Jump to: navigation, search
(Changing int to number)
(Changing cloat to number)
Line 2: Line 2:
 
{{Function
 
{{Function
 
  |name=os.startTimer
 
  |name=os.startTimer
  |args=[[float (type)|float]] time
+
  |args={{type|number}} time
 
  |api=OS
 
  |api=OS
 
  |returns={{type|number}} timerID
 
  |returns={{type|number}} timerID

Revision as of 14:51, 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(number time)
Returns number timerID
Part of ComputerCraft
API OS