mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user