Tankbuster
NearRoads always gets data in the same order. In a 300 meter radius around Feruz Abad, for example, the first one is in the south-west corner and the last one is in the north-east.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Object Detection · Markdown · JSON · original wiki page
Find the road segments within the circle of given radius.
pos nearRoads radius
Parameters:
pos: Object or PositionAGL or Position2D - center of search radiusradius: Number - search radius in metersReturns: Array of Objects - road segments within radius
_list = player nearRoads 50;
_list = (position _unit) nearRoads 50;
_list = [1800,5700] nearRoads 50;
isOnRoad · roadAt · surfaceIsWater · roadsConnectedTo · findNearestEnemy · nearestBuilding · nearestObject · nearestObjects · nearObjects · nearestLocation · nearEntities · nearTargets · nearSupplies · nearestLocationWithDubbing · nearObjectsReady · getRoadInfo · nearestTerrainObjects · nearestMines
NearRoads always gets data in the same order. In a 300 meter radius around Feruz Abad, for example, the first one is in the south-west corner and the last one is in the north-east.