Arma 3 Scripting

Command in Markers

getMarkerPos

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

Description

Returns marker position.

Syntax

Syntax 1

getMarkerPos markerName

Parameters:

Returns: PositionAGL - format [x,y,0]

Syntax 2

since arma3 1.94

getMarkerPos [markerName, preserveElevation]

Parameters:

Returns: PositionAGL - if preserveElevation is true or [x,y,0] if preserveElevation is false

Examples

Example 1

_mPos1 = getMarkerPos "markerOne";

Example 2

_mPos2 = getMarkerPos ["markerTwo", true];

See also

setMarkerPos · setMarkerPosLocal