Update fill_nearestVehicle.sqf (#1923)

() - condition
{} - code execution, heavier code
This commit is contained in:
F507DMT
2017-03-26 23:27:26 +06:00
committed by ebayShopper
parent 50ba58f5ae
commit 04d1622bc9

View File

@@ -15,7 +15,7 @@ if (!isNull _fuelTruck) then {
_findNearestVehicle = []; _findNearestVehicle = [];
{ {
if ((alive _x) && {_x != _fuelTruck} && {!(_x isKindOf "Man")}) exitWith { if ((alive _x) && (_x != _fuelTruck) && (!(_x isKindOf "Man"))) exitWith {
_findNearestVehicle set [(count _findNearestVehicle),_x]; _findNearestVehicle set [(count _findNearestVehicle),_x];
}; };
} count (nearestObjects [player, ["AllVehicles"], 30]); } count (nearestObjects [player, ["AllVehicles"], 30]);