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



Introduced in

Version:1.00

Description

Description:Returns the closest location of the specified class to a given position. The checked range is unlimited (covers the whole map).

Syntax

Syntax:nearestLocation [position, locationClass]
Parameters:
  • position: Array - Location to check.
  • locationClass: String - Location class name.
Return Value:Location

Examples

Examples:
_nearestCity = nearestLocation [getPos player, "nameCity"]

Additional Information

See also: nearestLocations
Multiplayer: 
Problems: 

Notes