mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
40f371c063
* Add conditions to zeus actions * Add condition caching
17 lines
673 B
C++
17 lines
673 B
C++
class ACE_ZeusActions {
|
|
class ZeusUnits {
|
|
class GVAR(rearm) {
|
|
displayName = CSTRING(Rearm);
|
|
icon = QPATHTOF(ui\icon_rearm_interact.paa);
|
|
condition = QUOTE(ZEUS_ACTION_CONDITION && {-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); \
|
|
);
|
|
};
|
|
};
|
|
};
|