{"name":"onCommandModeChanged","title":"onCommandModeChanged","type":"command","url":"https://community.bistudio.com/wiki/onCommandModeChanged","revid":369384,"updated":"2024-09-03T18:43:15Z","groups":["Event Handlers","High Command"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Defines code performed when hc command mode changes either because of (Left Ctrl + Space) shortcut or hcShowBar scripting command. Groups hc mode must contain at least one group for this command to work (see High Command). Attached code receives *_isHighCommand* boolean.\n\n> [!NOTE]\n> Since **Arma 3** *v1.57* a stackable version of this EH is available: CommandModeChanged","syntaxes":[{"syntax":"onCommandModeChanged code","params":[{"name":"code","type":"Code or String","type_expr":"Code | String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"code"}}],"examples":[{"code":["//Examples in-use can be found in:\n\n//ca\\modules\\HC\\data\\scripts\\HC_GUI.sqf\n//A3\\modules_f\\HC\\data\\scripts\\HC_GUI.sqf"]}],"see_also":["High Command","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","onHCGroupSelectionChanged"]}