mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Update fill_nearestVehicle.sqf (#1923)
() - condition
{} - code execution, heavier code
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user