Difference between revisions of "Os.queueEvent"
From ComputerCraft Wiki
m (Fixed minor format inconsistencies within the code snippets.) |
m (Block fix.) |
||
Line 11: | Line 11: | ||
|code= | |code= | ||
os.queueEvent("abc", 2, "meow") | os.queueEvent("abc", 2, "meow") | ||
− | + | while true do | |
local event, param1, param2 = os.pullEvent() | local event, param1, param2 = os.pullEvent() | ||
if event == "abc" then | if event == "abc" then |
Revision as of 18:49, 28 November 2012
Function os.queueEvent | |
Adds an event eventName with the specified parameters to the event queue. | |
Syntax | os.queueEvent(string eventName, param1, param2, param3) |
Returns | nil |
Part of | ComputerCraft |
API | os |
Examples