mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
a90dd7210e
commit
328853e36b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user