Jump to navigation Jump to search
- Return the closest location of specified class to a given position. Checked range is unlimited (i.e. covers the whole map).
- nearestLocation [position, locationType, maxDistance]
- position: Object or Array in format PositionAGL or Position2D
- locationType: String of a location class name. If "" is supplied, any nearest location is returned. Since Arma 3 2.14 locationType could be an Array of location types. See Location Types
- since 2.14
- maxDistance: Number - (Optional) max search radius. Default - unlimited range.
- Return Value:
- Example 1:
- Example 2:
- See also:
- findNearestEnemy nearestBuilding nearestObject nearestObjects nearObjects nearEntities nearTargets nearSupplies nearestLocationWithDubbing nearObjectsReady nearRoads Location Types locationPosition nearestLocations createLocation nearestMines