mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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 = [];
|
||||
{
|
||||
if ((alive _x) && {_x != _fuelTruck} && {!(_x isKindOf "Man")}) exitWith {
|
||||
if ((alive _x) && (_x != _fuelTruck) && (!(_x isKindOf "Man"))) exitWith {
|
||||
_findNearestVehicle set [(count _findNearestVehicle),_x];
|
||||
};
|
||||
} count (nearestObjects [player, ["AllVehicles"], 30]);
|
||||
|
||||
Reference in New Issue
Block a user