nearestLocations [position, [locationType,...], radius]

Operand types

[position, [locationType,...], radius]: Array

Type of returned value

Description

Returns an array of locations of the chosen type(s) within the given radius of the given position, sorted from nearest to farthest.

position is an array in the format Position.
[locationType,...] is an array of location name strings.
radius is the distance from position from which to search.

Used In

ArmA

Example

_nearLocs = nearestLocations [getPos player, ["NameMarine","ViewPoint"], 300]
Search OFPEC COMREF