CBA_fnc_addEventHandler

Description

Registers an event handler for a specific CBA event.

Parameters

_eventNameType of event to handle.  STRING
_eventFuncFunction to call when event is raised.  <CODE>

Returns

_eventIdUnique ID of the event handler (can be used with CBA_fnc_removeEventHandler).

Examples

_id = ["test", {systemChat str _this}] call CBA_fnc_addEventHandler;

Author

Spooner, commy2

string used by format
Close