nearestLocation [position, locationClass]
Operand types
[position, locationClass]:
Array
Type of returned value
Description
Return the closest location of a specified class to a given position.
Checked range is unlimited (i.e. covers the whole map).
position is an array in the format Position.
locationClass is the location name string to search for.
Used In
ArmA
Example
_nearLoc = nearestLocation [getPos player, "Hill"]