CBA_fnc_addDisplayHandler

Description

Adds an action to the main display.

They are reapplied after loading a save game.  Actions only persist for the mission and are removed after restart.

Parameters

_typeDisplay handler type to attach.  STRING
_codeCode to execute upon event.  <STRING, CODE>

Returns

_idThe ID of the attached handler.  Used to remove with “CBA_fnc_removeDisplayHandler” <NUMBER>

Examples

_id = ["KeyDown", {_this call myKeyDownEH}] call CBA_fnc_addDisplayHandler;

Author

Sickboy, commy2

string used by format
Close