Adds or updates the keybind handler for a defined Fleximenu and creates that Fleximenu.
_modName | Name of the registering mod [String] |
_actionName | Name of the action to register [String] |
_displayName | Pretty name, or an array of strings for the pretty name and a tool tip [String] |
_fleximenuDef | Parameter array for CBA_fnc_flexiMenu_Add, but with the keybind set to [] [Array] |
_defaultKeybind | Default keybind [DIK code, [shift?, ctrl?, alt?]] [Array] |
_holdKey | Will the key fire every frame while down [Bool] (Default: true) |
_holdDelay | How long after keydown will the key event fire, in seconds. [Float] (Default: 0) |
_overwrite | Overwrite existing keybind data? [Bool] (Default: False) |
Returns the current keybind for the Fleximenu [Array]
["Your Mod", "Your_Action_Key", ["Your Action","ToolTip"], ["player", [], -100, "_this call my_menu_code_array"], [15, [true, true, true]]] call cba_fnc_addKeybindToFleximenu;
["Your Mod", "Your_Action_Key", "Your Action", ["player", [], -100, "_this call my_menu_code_array"], [15, [true, true, true]]] call cba_fnc_addKeybindToFleximenu;
Author: ViperMaul