mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Make UAV's useable with DynaMenu
This commit is contained in:
parent
43ae5cc72e
commit
b2cd465fbf
BIN
Sources/epoch_code/customs/images/epoch_UAV.paa
Normal file
BIN
Sources/epoch_code/customs/images/epoch_UAV.paa
Normal file
Binary file not shown.
@ -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";
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user