Thought I would share the scripts I use for a small Control Center.
With inspiration from a post made by @SpyderBlack723 I made the laptops interactive.
Supports menu:
//ALiVE Combat Support //call with null = this execVM "csupport.sqf"; params ["_object"]; [ _object, /* 0 object */ "Open Combat Support", /* 1 action title */ "\a3\ui_f_exp_a\Data\RscTitles\RscEGProgress\downloadicon_ca.paa", /* 2 idle icon */ "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\upload_ca.paa", /* 3 progress icon */ "true", /* 4 condition to show */ "true", /* 5 condition for action */ {["Control Center", "Connection requested."] call BIS_fnc_showSubtitle}, /* 6 code executed on start */ {hint "Identity verified"}, /* 7 code executed per tick */ {["radio"] call ALIVE_fnc_radioAction;}, /* 8 code executed on completion */ {["Control Center", "Connection interrupted."] call BIS_fnc_showSubtitle}, /* 9 code executed on interruption */ ["Connected"], /* 10 arguments */ 3, /* 11 action duration */ 0, /* 12 priority */ false, /* 13 remove on completion */ false /* 14 show unconscious */ ] call bis_fnc_holdActionAdd;
and the Tasking menu:
//ALiVE Tasking Menu //call with null = this execVM "tsupport.sqf"; params ["_object"]; [ _object, /* 0 object */ "Open Task Controls", /* 1 action title */ "\a3\ui_f_exp_a\Data\RscTitles\RscEGProgress\downloadicon_ca.paa", /* 2 idle icon */ "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\upload_ca.paa", /* 3 progress icon */ "true", /* 4 condition to show */ "true", /* 5 condition for action */ {["Control Center", "Connection requested."] call BIS_fnc_showSubtitle}, /* 6 code executed on start */ {hint "Identity verified"}, /* 7 code executed per tick */ {createDialog "C2Tablet"}, /* 8 code executed on completion */ {["Control Center", "Connection interrupted."] call BIS_fnc_showSubtitle}, /* 9 code executed on interruption */ ["Connected"], /* 10 arguments */ 3, /* 11 action duration */ 0, /* 12 priority */ false, /* 13 remove on completion */ false /* 14 show unconscious */ ] call bis_fnc_holdActionAdd;
Thought it might interest some in making a Commander role more immersive.
Thanks also to @stcrowe for fixing my original screwup lol