Arma 3 Scripting

Command in Positions, Map

mapGridPosition

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the map grid position of an object or position.

The format is determined by the Grid format specified in the CfgWorlds for the current world. Eg: "024577" or "De82" or similar.

Syntax

mapGridPosition param

Parameters:

Returns: String - grid position

Examples

Example 1

_gridPos = mapGridPosition player;

Example 2

_gridPos = mapGridPosition getPos player;

See also

BIS_fnc_gridToPos · BIS_fnc_posToGrid