function addEventHandler (shared-side)
Available since version: 0.0.1
This function will bind function to specified event.
Declaration
bool addEventHandler(string eventName, function func, int priority = 9999)
Parameters
stringeventName: the name of the event.functionfunc: the reference to a function, keep in mind that function must have the same amount of arguments as event.intpriority: the function priority. The lower the value, the sooner the function/handler will be called.
Returns bool
true if specified event evists and operation was successfull, otherwise false.