mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 06:32:57 +03:00
Don't show selected vehicleX message on Adv Trade startup
Only show Selected vehicleX systemChat message when clicking the buy in/sell from vehicle button. Previously it was showing every time the menu opened. Also added better logging to RPT. Shows "Trader Menu: %1 x %2 added" and "Trader Menu: %1 added"
This commit is contained in:
@@ -11,9 +11,9 @@ _list = nearestObjects [_pos, ["Air","LandVehicle","Ship"], Z_VehicleDistance];
|
||||
_result = false;
|
||||
if(!isNull _vehicle)then{
|
||||
Z_vehicle = _vehicle;
|
||||
systemChat format[localize "STR_EPOCH_TRADE_SELECTED",typeOf Z_vehicle];
|
||||
_result = true;
|
||||
if (_this) then { // Set trade title, don't set on menu start up since gear is selected initially.
|
||||
systemChat format[localize "STR_EPOCH_TRADE_SELECTED",typeOf Z_vehicle];
|
||||
if (Z_Selling) then {
|
||||
[format[localize "STR_EPOCH_TRADE_SELLING_FROM", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user