ACE3/addons/rearm/ACE_ZeusActions.hpp
Dystopian d7c7ead574 Zeus - Add Repair and Rearm interactions (#6632)
* Add Repair and Rearm interaction to zeus

* Optimize remoteControl statement
2018-10-13 12:07:32 -05:00

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); \
);
};
};
};