function toggleEvent (shared-side)
Available since version: 0.3.0
Note
By default every event is toggled on (enabled).
This function will toggle event (enable or disable it globally). By toggling event off, you can completely disable certain event from calling it's handlers.
Declaration
void toggleEvent(string eventName, bool toggle)
Parameters
stringeventName: the name of the event.booltoggle:falseif you want to disable the event, otherwisetrue.