CBA_fnc_addKeyHandlerFromConfig

Description

Adds an action to a keybind from config.

Parameters

_componentClassname under “CfgSettings” >> “CBA” >> “events” STRING
_actionAction name STRING
_codeCode to execute upon event.  <CODE>
_type”keydown” or “keyup”.  [optional] (default: “keydown”) STRING

Returns

_hashKeyKey handler identifier.  Used to remove or change the key handler.  STRING

Examples

["cba_sys_nvg", "nvgon", {_this call myAction}] call CBA_fnc_addKeyHandlerFromConfig

Author

Sickboy, commy2

string used by format
Close