{"name":"commandingMenu","operator":null,"title":"commandingMenu","type":"command","url":"https://community.bistudio.com/wiki/commandingMenu","revid":337562,"updated":"2023-02-10T01:04:40Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the name of the topmost commanding menu or \"\" if the menu is closed. For action menu visibility check see isActionMenuVisible. See #Notes for Arma 2/Arma 3 structure.","syntaxes":[{"syntax":"commandingMenu","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nwaitUntil { sleep 0.1; commandingMenu == \"RscStatus\" };\nhint \"Press 4, I'm bleeding !\";\n```","code":["waitUntil { sleep 0.1; commandingMenu == \"RscStatus\" };\nhint \"Press 4, I'm bleeding !\";"]},{"text":"```sqf\nif (commandingMenu != \"\") then { hint \"Command menu is opened\" };\n```","code":["if (commandingMenu != \"\") then { hint \"Command menu is opened\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["showCommandingMenu","isActionMenuVisible","BIS_fnc_addCommMenuItem","BIS_fnc_removeCommMenuItem"],"notes":[{"user":"Lou Montana","date":"2009-07-15T12:21:00Z","text":"Arma 2 possible values are:\n- **\"\"** - means the menu is closed\n- **\"RscMainMenu\"** - Main menu, by pressing backspace\n  - **\"RscMoveHigh\"** - Move menu (1)\n  - **\"#WATCH\"** - Watch menu (2)\n    - **\"#WATCH0\"** - Watch menu - next page (2-0)\n  - **\"RscWatchDir\"** - Engage menu (3)\n    - **\"RscWatchMoreDir\"** - Engage menu - watch a direction (3-8)\n  - **\"#GET_IN\"** - Mount menu (4)\n  - **\"RscStatus\"** - Status menu (5)\n    - **\"RscCallSupport\"** - Mount menu - call support (5-1)\n  - **\"#ACTION\"** - Action menu (6)\n  - **\"RscCombatMode\"** - Combat mode menu (7)\n  - **\"RscFormations\"** - Formation menu(8)\n  - **\"RscTeam\"** - Team menu (9)\n    - **\"RscSelectTeam\"** - Team menu - select team (0-5)\n  - **\"RscReply\"** - Reply menu (0)\n    - **\"#User:BIS_Menu_GroupCommunication\"** - Communication menu (0-8)\n    - **\"#CUSTOM_RADIO\"** - Custom sounds menu (0-9)\n  - **\"RscRadio\"** - Radio menu (0-0)\n- **\"RscGroupRootMenu\"** - \"simplified\" menu"},{"user":"Lou Montana","date":"2021-08-02T07:42:00Z","text":"Arma 3 possible values (thanks to **RCA3**):\n- **\"\"** - means the menu is closed\n- **\"RscGroupRootMenu\"** Group menu root\n  - **\"RscMenuMove\"** (1) Move menu\n  - **\"#WATCH\"** (2) Watch menu\n    - **\"#WATCH1\"** (2-0) Watch menu - next page\n  - **\"RscMenuEngage\"** (3) Engage menu\n    - **\"RscMenuWatchDir\"** (3-8) Engage menu - watch a direction\n  - **\"#GET_IN\"** (4) Mount menu\n  - **\"RscMenuStatus\"** (5) Status menu\n    - **\"RscCallSupport\"** (5-1) Status menu - call support\n  - **\"#ACTION\"** (6) Action menu Action menu\n  - **\"RscMenuCombatMode\"** (7) Combat mode menu\n  - **\"RscMenuFormations\"** (8) Formation menu\n  - **\"RscMenuTeam\"** (9) Team menu\n    - **\"RscMenuSelectTeam\"** (9-9) Team menu - select team\n  - **\"RscMenuReply\"** (0) Reply menu\n    - **\"#User:BIS_fnc_addCommMenuItem_menu\"** (0-8) BIS Supports\n    - **\"#CUSTOM_RADIO\"** (0-9) Custom radio\n    - **\"RscRadio\"** (0-0) Radio menu\n  - **\"RscMainMenu\"** (Backspace) Main menu"}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}