Search the Community
Showing results for tags 'showcommandingmenu'.
Found 2 results
-
How to update information inside a custom menu
beako posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
HI All, I'm trying to update information within the custom menu and sub-menu so I don't have to keep exiting the menu for it to rerun the function. I there are certain conditions that may get updated during game play, like _ownsRadioTower, my_Money and player getVariable ["REINFORCEMENTS", FALSE] that may change while the player in the custom menu, and I would like it to update the status from being disabled (in grey )to enabled. MY_MENU_inCommunication = [ ["DESTRUCTION MENU",true], ["MOTOR POOL", [2], "#USER:MENU_MOTOR_POOL", -5, [["expression", " player sideChat ""Order Vehicles"" "]], "1", "1"], ["ARMORY", [3], "#USER:MY_SUBMENU2_inCommunication", -5, [["expression", " player sideChat ""Order Emplacements"" "]], "1", "1"], ["RADIO TOWER", [4], "#USER:MY_SUBMENU3_inCommunication", -5, [["expression", " player sideChat ""CALL IN SUPPORT/INTEL"" "]],"1", missionnamespace getvariable ["mainActive3","0"] ], ["REINFORCEMENTS", [5], "#USER:MY_SUBMENU4_inCommunication", -5, [["expression", " player sideChat ""CALL IN REINFORCEMENTS"" "]], "1", missionnamespace getvariable ["mainActive4","0"] ] ]; if (_ownsARadioTower) then { mainActive3 = 1} else {mainActive3 = 0}; //&& sector1 getVariable "owner" == WEST if (my_Money >= 25 and player getVariable ["REINFORCEMENTS",FALSE]) then { mainActive4 = 1} else {mainActive4 = 0}; _array5 = MY_MENU_inCommunication select 3;// 4th line menu item _array5 set[6, str mainActive3];// change grey out status _array5 = MY_MENU_inCommunication select 4;// 4th line menu item _array5 set[6, str mainActive4];// change grey out status showCommandingMenu "#USER:MY_MENU_inCommunication"; Thanks for any advice in advance. -
Hello, I am having trouble wrapping my mind around this today. Help would be awesome. I would like to disable and option use for 300 seconds. I want a condition for active, but not quite sure what to use or if I have been looking at it the whole time. My idea was on use set 0 sleep for 300 sec then set it back to 1 (Example: Heli Insertion). Is this even possible if not I can disable the entire addaction did not want to? dub aka Travis //support menu _onUseCondition = ""; MENU_support = [ ["610 Options",true], ["Infantry Supplies", [2], "", -5, [["expression", "_thread = 1 spawn dub_fnc_Support610; "]], "1", "1"], ["Vehicle Ammo", [3], "", -5, [["expression", "_thread = 1 spawn dub_fnc_VDropVehAmmo;"]], "1", "1"], ["Vehicle Drop", [4], "", -5, [["expression", "_thread = 1 spawn dub_fnc_VDrop; "]], "1", "1"], ["Heli Insertion", [5], "", -5, [["expression", "_thread = 1 spawn dub_fnc_heliinsertion; "]], "1", _onUseCondition] ]; //Open menu action player addAction [("<t color=""#00ff1d"">" + ("610 Support") + "</t>"), {showCommandingMenu "#USER:MENU_support";}, [], 0, false, true, "", ""]; player addEventHandler [ "Respawn", { player addAction [("<t color=""#00ff1d"">" + ("610 Support")+ "</t>"), {showCommandingMenu "#USER:MENU_support";}, [], 0, false, true, "", ""]; }];
- 6 replies
-
- menu
- showcommandingmenu
-
(and 1 more)
Tagged with: