mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix rearm of dead vehicles (#8962)
This commit is contained in:
parent
1b7755225a
commit
9569a16efc
@ -19,7 +19,12 @@
|
|||||||
params ["_truck", "_player"];
|
params ["_truck", "_player"];
|
||||||
|
|
||||||
private _vehicles = nearestObjects [_truck, ["AllVehicles"], GVAR(distance)];
|
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 _cswCarryMagazines = [];
|
||||||
private _vehicleActions = [];
|
private _vehicleActions = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user