Arma 3 Scripting

markerPos

  • Arma 3 v0.50
  • First in Operation Flashpoint v1.46
  • Alias of getMarkerPos

Command · Markdown · JSON · original wiki page

Description

Returns marker position. See also setMarkerPos.

Syntax

Syntax 1

markerPos markerName

Parameters:

Returns: PositionAGL - [x, y, 0], z is always 0

Syntax 2

since arma3 1.94

markerPos [markerName, preserveElevation]

Parameters:

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

Examples

Example 1

_mPos1 = markerPos "markerOne";

Example 2

_mPos2 = markerPos ["markerTwo", true];

See also

setMarkerPos · setMarkerPosLocal

Community notes