Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Returns an array of locations of chosen types, within the given radius of the given position, sorted from nearest to farthest.

Syntax

Syntax:nearestLocations [position, [locationType, ...], radius]
Parameters:
  • position: Array - Position-2.
  • [locationType, ...]: Array of String - An array of location type names.
  • radius: Number - Maximum distance from the given position that returned locations might be in (in meters).
Return Value:Array of Location - Nearest locations.

Examples

Examples:
_nearbyLocations = nearestLocations [getPos player, ["RockArea","VegetationFir"], 100]

Additional Information

See also: nearestLocation
Multiplayer: 
Problems: 

Notes