Split compiles a bit, diff sell ranges for Vehicles, air-vehicles and boats

This commit is contained in:
Skaronator
2013-11-08 21:11:26 +01:00
parent 36782396b8
commit 2d0025608f
27 changed files with 234 additions and 140 deletions

View File

@@ -74,8 +74,12 @@ if (_qty >= _qty_in) then {
if(_buy_o_sell == "buy") then {
_qty = {_x == _part_in} count magazines player;
} else {
_obj = nearestObjects [(getPosATL player), [_part_in], dayz_sellDistance];
_qty = count _obj;
if (_part_in isKindOf "AIR") then {
_obj = nearestObjects [(getPosATL player), [_part_in], dayz_sellDistance_air];
} else {
_obj = nearestObjects [(getPosATL player), [_part_in], dayz_sellDistance_vehicle];
};
_qty = count _obj;
};
if (_qty >= _qty_in) then {