Event
Definition
Events are internal game messages that fire whenever something is triggered. Whenever an action occurs the event is sent back to the script. If an event is registered with the RegisterEventHandler function, that lua code will execute whenever that event is occured. Check the official documentation for all the different events and read the descriptions for information about when the event is fired.