Make UAV's useable with DynaMenu

This commit is contained in:
He-Man 2018-07-11 14:50:19 +02:00
parent 43ae5cc72e
commit b2cd465fbf
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -586,5 +586,13 @@ class BaseCam
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Camera.paa";
tooltip = "Watch BaseCam";
};
class ConnectUAV
{
condition = "dyna_cursorTarget iskindof 'UAV_01_base_F' || dyna_cursorTarget iskindof 'UAV_06_base_F'";
action = "if ({_x in (assigneditems player)} count ['B_UavTerminal','O_UavTerminal','I_UavTerminal','C_UavTerminal'] > 0) then {dyna_cursorTarget spawn {_unit = _this;if (isnull (driver _unit)) then {_plyr = player;_grp = createGroup side _plyr;_driver = _grp createUnit[""I_UAV_AI"", position _unit, [], 0, ""CAN_COLLIDE""];_driver moveInAny _unit;uisleep 0.5;};player action [""SwitchToUAVDriver"", _unit];};}else {['You need an UAV-Terminal to connect',5] call epoch_message;};";
icon = "epoch_code\customs\images\epoch_UAV.paa";
// icon = "x\addons\a3_epoch_code\Data\UI\buttons\epoch_UAV.paa"; <--- Change to Client Update
tooltip = "Connect to UAV";
};