nearestLocation

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.08

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.08

Description

Description:
Return the closest location of specified class to a given position.

Syntax

Syntax:
Location = nearestLocation [Position , "LocationClass"]]
Parameters:
Position
"LocationClass" = String of a location class name.
Return Value:
Location

Examples

Example 1:
_nearestCity = nearestLocation [getPos player, "nameCity"]

Additional Information

Multiplayer:
Behaviour unknown.
See also:
nearestLocations

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!