mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 01:20:49 +03:00
Use nearEntities for empty drivable vehicles
NearEntities is faster and works fine for empty drivable vehicles that are not destroyed.
This commit is contained in:
@@ -13,7 +13,7 @@ _towTruckSize = (sizeOf typeOf _towTruck);
|
||||
_allowedSize = _towTruckSize-(_towTruckSize/3);
|
||||
|
||||
// Get all nearby vehicles within 10m
|
||||
_findNearestVehicles = nearestObjects [_towTruck, ["Car","Motorcycle"], 10];
|
||||
_findNearestVehicles = _towTruck nearEntities [["Car","Motorcycle"],10];
|
||||
_findNearestVehicle = [];
|
||||
{
|
||||
if (alive _x && _towTruck != _x) then {
|
||||
|
||||
Reference in New Issue
Block a user