Search the Community
Showing results for tags 'command menu'.
Found 2 results
-
Set selected item with showCommandingMenu
juleshuxley posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So apparently showCommandingMenu takes a _pos local variable? Does this allow me to set what item in the menu is highlighted? I can create my menu with showCommandingMenu "#User:MyArray" but how do I use _pos to set the highlight to, say, the third item? -
Cannot execute scripts in command menus that have sub-menus
ColonelKernel posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi. I'm having issues activating scripts with command menus that have sub-menus. For instance, suppose I have created the following command menu: mount_subMenu = [ ["Mount",true], ["Car", [2], "#USER:car_subMenu", -5, [["expression", "hint ""Car"" "]], "1", "1"] ]; The hint command (or any other command for that matter) doesn't work right now. But if I remove #USER:car_subMenu from the code then the hint command works. I also tried doing this but the submenu disappears instantly (the hint command works however): mount_subMenu = [ ["Mount",true], ["Car", [2], "", -5, [["expression", " showCommandingMenu ""#USER:car_subMenu""; hint ""Car""; "]], "1", "1"] ]; Is there a way I can fix this?