os.startTimer
The Timer event is fired when the timer is finished.
| os.startTimer Function | |
|---|---|
|
Syntax os.startTimer(
| |
| Returns | number timerID |
| API | os |
| Source | CC:Tweaked (source) |
Starts a Timer.
You can stop the timer with os.cancelTimer.
|
|||
| Starts a Timer with 5 seconds. | |||
| Code | <nowiki>
os.startTimer(5)
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.