mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
d7c7ead574
* Add Repair and Rearm interaction to zeus * Optimize remoteControl statement
17 lines
658 B
C++
17 lines
658 B
C++
class ACE_ZeusActions {
|
|
class ZeusUnits {
|
|
class GVAR(rearm) {
|
|
displayName = CSTRING(Rearm);
|
|
icon = "\z\ace\addons\rearm\ui\icon_rearm_interact.paa";
|
|
condition = QUOTE(-1 < (curatorSelected select 0) findIf {_x isKindOf 'AllVehicles' && {!(_x isKindOf 'Man')}});
|
|
statement = QUOTE( \
|
|
{ \
|
|
if (_x isKindOf 'AllVehicles' && {!(_x isKindOf 'Man')}) then { \
|
|
[ARR_2(objNull,_x)] call ace_rearm_fnc_rearmEntireVehicleSuccess; \
|
|
}; \
|
|
} forEach (curatorSelected select 0); \
|
|
);
|
|
};
|
|
};
|
|
};
|