Event (class)
Revision as of 20:27, 3 March 2015 by Kevsoft (talk | contribs) (Created page with "Category:LunaLua API Category:LunaLua classes This class is used to pass additional data to the event. This class is mainly used for event which are '''not sync with t...")
This class is used to pass additional data to the event. This class is mainly used for event which are not sync with the main event loop. Please note that not every event is cancellable. If doing anyway, it will throw an error.
| Event class | |||
|---|---|---|---|
| Type | Function/Field | Return values/Value type | Description |
| Field (ro) | Event.eventName | string | The name of the event-type! Not a SMBX Event! |
| Field (ro) | Event.cancellable | boolean | Returns true, if the event is cancellable. |
| Field | Event.cancelled | boolean | If set to true, then the event will be cancelled and the hoster of the event will take action to this decision. |