Arma 3 Scripting

nearRoads

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · also in Object Detection · Markdown · JSON · original wiki page

Description

Find the road segments within the circle of given radius.

Syntax

pos nearRoads radius

Parameters:

Returns: Array of Objects - road segments within radius

Examples

Example 1

_list = player nearRoads 50;

Example 2

_list = (position _unit) nearRoads 50;

Example 3

_list = [1800,5700] nearRoads 50;

See also

isOnRoad · roadAt · surfaceIsWater · roadsConnectedTo · findNearestEnemy · nearestBuilding · nearestObject · nearestObjects · nearObjects · nearestLocation · nearEntities · nearTargets · nearSupplies · nearestLocationWithDubbing · nearObjectsReady · getRoadInfo · nearestTerrainObjects · nearestMines