Fix rearm of dead vehicles (#8962)

This commit is contained in:
Dystopian 2022-07-10 11:47:47 +03:00 committed by GitHub
parent 1b7755225a
commit 9569a16efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,12 @@
params ["_truck", "_player"];
private _vehicles = nearestObjects [_truck, ["AllVehicles"], GVAR(distance)];
_vehicles = _vehicles select {(_x != _truck) && {!(_x isKindOf "CAManBase")} && {!(_x getVariable [QGVAR(disabled), false])}};
_vehicles = _vehicles select {
_x != _truck
&& {!(_x isKindOf "CAManBase")}
&& {alive _x}
&& {!(_x getVariable [QGVAR(disabled), false])}
};
private _cswCarryMagazines = [];
private _vehicleActions = [];