mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
18 lines
508 B
Plaintext
18 lines
508 B
Plaintext
private ["_vehicle","_list","_result"];
|
|
Z_vehicle = objNull;
|
|
_vehicle = objNull;
|
|
_list = nearestObjects [(getPosATL player), ["AllVehicles"], Z_VehicleDistance];
|
|
{
|
|
if(!isNull _x && local _x && !isPlayer _x && alive _x && !(_x isKindOf "zZombie_base"))then{
|
|
_vehicle = _x;
|
|
};
|
|
}count _list;
|
|
_result = false;
|
|
if(!isNull _vehicle)then{
|
|
Z_vehicle = _vehicle;
|
|
systemChat format["Selected %1",typeOf Z_vehicle];
|
|
_result = true;
|
|
[format["Buying in %1.", typeOf Z_vehicle]] call Z_filleTradeTitle;
|
|
};
|
|
_result
|