1583 posts
Location
Germany
Posted 11 June 2013 - 04:10 PM
How can I create an event so I can detect it with
p1,p2,p3 = os.pullEvent("someEvent")
???
49 posts
Posted 11 June 2013 - 04:18 PM
you would use
os.queueEvent("someEvent", p1, p2, p3)
536 posts
Posted 11 June 2013 - 04:26 PM
edit; never mind I didn't forgot there was a function called "queueEvent"
7508 posts
Location
Australia
Posted 11 June 2013 - 09:05 PM
Also just to extend on what danny_delmax1 posted, the parameters you queue can be of any type, they do not have to be strings and numbers, you can also queue tables and even functions.
2217 posts
Location
3232235883
Posted 11 June 2013 - 09:14 PM
afaik you cant queue events with tables
the only event you would ever receive with a table is timer
7508 posts
Location
Australia
Posted 11 June 2013 - 09:45 PM
last I tried it worked.