alarm event
Occurs when a previously set alarm is scheduled to go off.
|
|||
Set's an alarm at 11 'o clock and tells the player to take the cake out of the oven. | |||
Code | <nowiki>
local myAlarm = os.setAlarm(11)
local event, alarmNumber
while alarmNumber ~= myAlarm do
event, alarmNumber = os.pullEvent("alarm")
end
print("The cake should be taken out of the oven! Watch out, it is hot!")
</nowiki>
|
alarm Event | |
---|---|
Returns
| |
Source | 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.