mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user