From bf6a980d4c0d8889ab0816d621615e2d139d7e5f Mon Sep 17 00:00:00 2001 From: oiad Date: Tue, 11 Apr 2017 12:03:37 +1200 Subject: [PATCH] Dont show you have the item if it's not nearby (#1937) * Dont show you have the item if it's not nearby This was showing you had a vehicle in the trader menu even if it was over the other side of the map, I think this works better only showing it if it's within the trader zone. * Forgot missing operator --- .../actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf index a6784eba1..676350996 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf @@ -12,7 +12,7 @@ _typeOf = typeOf (unitBackPack player); _type = _x select 1; _count = 0; - if (_type in DZE_tradeVehicle && {_name == typeOf DZE_myVehicle}) then { + if (_type in DZE_tradeVehicle && {_name == typeOf DZE_myVehicle} && {player distance DZE_myVehicle <= Z_VehicleDistance}) then { _count = 1; }; if (_type == "trade_items") then {