Fix mk6 mortar being reloadable via rearm when ammoHandling is enabled (#6648)

Rearm - Fix mk6 mortar being reloadable when ammoHandling is enabled
This commit is contained in:
Josuan Albin 2018-10-28 22:14:11 +01:00 committed by PabstMirror
parent a90dd7210e
commit 328853e36b

View File

@ -20,6 +20,10 @@ params ["_truck"];
private _vehicles = nearestObjects [_truck, ["AllVehicles"], 20];
_vehicles = _vehicles select {(_x != _truck) && {!(_x isKindOf "CAManBase")} && {!(_x getVariable [QGVAR(disabled), false])}};
if (missionNamespace getVariable [QEGVAR(mk6mortar,useAmmoHandling), false]) then {
_vehicles = _vehicles select {!(_x isKindOf "Mortar_01_base_F")};
};
private _vehicleActions = [];
{
private _vehicle = _x;