Use nearObjects instead of nearestObjects for spawn check #1816

Lowered spawn check radius for loot and zombies to the same as 1051.
(200m)
This commit is contained in:
ebaydayz
2017-01-30 15:45:14 -05:00
parent 752ed00566
commit 05f1cf9fe0
4 changed files with 12 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ _findNearestVehicles = _towTruck nearEntities [["Car","Motorcycle"],10];
_findNearestVehicle = [];
{
if (alive _x && _towTruck != _x) then {
if([_x,_towTruck] call fnc_isInsideBuilding2) then {
if([_x,_towTruck] call fnc_isInsideBuilding) then {
_findNearestVehicle set [(count _findNearestVehicle),_x];
};
};
@@ -77,7 +77,7 @@ if(_IsNearVehicle >= 1) then {
if (_finished) then {
if((sizeOf typeOf _vehicle) <= _allowedSize) then {
if([_vehicle,_towTruck] call fnc_isInsideBuilding2 && ((vectorUp _vehicle) select 2) > 0.5) then {
if([_vehicle,_towTruck] call fnc_isInsideBuilding && ((vectorUp _vehicle) select 2) > 0.5) then {
if(typeOf _towTruck == "TOW_DZE" ) then {
_vehicle attachTo [_towTruck,[1.3,-2,2.3]];
_towTruck setVariable ["DZEinTow", true, true];