mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 15:51:36 +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:
1 parent
ea948c7e0d
commit
9bbeb1e43e
3 files changed
+4
-4
No files matched your search
@@ -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