Event¶
The Event library is used to pull events.
Usage¶
Lua | |
---|---|
Functions¶
pull¶
event.pull( [eventName1 [, eventName2, ...]] )
Wait for events.
Parameters¶
...eventName
: string - Events to wait for.
Returns¶
eventName
: string - Name of the event....parameter
: any - Any parameter related to the event pulled.
Throws¶
- If interrupt event is emitted anytime despite the filter.
pullRaw¶
event.pullRaw( [eventName1 [, eventName2, ...]] )
Wait for events.
Note
interrupt event is emitted despite the filter, but will not error.
Parameters¶
...eventName
: string - Events to wait for.
Returns¶
eventName
: string - Name of the event....parameter
: any - Any parameter related to the event pulled.
push¶
event.push( eventName [, ...])
Push an event to the queue.
Parameters¶
eventName
: string - Name of the event....parameters
: any? - Optional parameters.
Last update:
March 11, 2023
Created: March 11, 2023
Created: March 11, 2023