mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix Adv. Trade secondary vehicle check
Forgot this one. See:
f503e53097
This commit is contained in:
@@ -10,9 +10,10 @@ Z_SellableArray = [];
|
|||||||
Z_SellArray = [];
|
Z_SellArray = [];
|
||||||
_vehicle = objNull;
|
_vehicle = objNull;
|
||||||
|
|
||||||
_list = nearestObjects [(getPosATL player), ["AllVehicles"], Z_VehicleDistance];
|
_pos = [player] call FNC_GetPos;
|
||||||
|
_list = nearestObjects [_pos, ["Air","LandVehicle","Ship"], Z_VehicleDistance];
|
||||||
{
|
{
|
||||||
if (!isNull _x && local _x && !isPlayer _x && alive _x && !(_x isKindOf "zZombie_base")) then {
|
if (!isNull _x && local _x && alive _x) then {
|
||||||
_vehicle = _x;
|
_vehicle = _x;
|
||||||
};
|
};
|
||||||
}count _list;
|
}count _list;
|
||||||
|
|||||||
Reference in New Issue
Block a user