CBA_fnc_addBISEventHandler

Description

Adds an event handler with arguments.

Additional arguments are passed as _thisArgs.  The ID is passed as _thisID.

Parameters

_objectThing to attach event handler to.  <OBJECT, CONTROL, DISPLAY>
_typeEvent handler type.  STRING
_functionFunction to add to event.  <CODE>
_argumentsArguments to pass to event handler.  <Any>

Returns

_idThe ID of the event handler.  Same as _thisID <NUMBER>

Examples

// one time fired event handler that removes itself
_id = [player, "fired", {systemChat _thisArgs; player removeEventHandler ["fired", _thisID]}, "bananas"] call CBA_fnc_addBISEventHandler;

Author

commy2

string used by format
Close