---
name: "getMarkerPos"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/getMarkerPos
revid: 377402
updated: 2026-01-02T06:44:58Z
---

# getMarkerPos

*Command · Markers · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: effect **local**

Alias: [markerPos](../commands/markerPos.md)

## Description

Returns marker position.

## Syntax

### Syntax 1

```sqf
getMarkerPos markerName
```

**Parameters:**

- `markerName`: [String](../topics/String.md)

**Returns:** [PositionAGL](../topics/Position.md#positionagl) - format [x,y,0]

### Syntax 2

*since arma3 1.94*

```sqf
getMarkerPos [markerName, preserveElevation]
```

**Parameters:**

- `markerName`: [String](../topics/String.md)
- `preserveElevation`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md))

**Returns:** [PositionAGL](../topics/Position.md#positionagl) - if *preserveElevation* is [true](../commands/true.md) or [x,y,0] if *preserveElevation* is [false](../commands/false.md)

## Examples

### Example 1

```sqf
_mPos1 = getMarkerPos "markerOne";
```

### Example 2

```sqf
_mPos2 = getMarkerPos ["markerTwo", true];
```

## See also

[setMarkerPos](../commands/setMarkerPos.md) · [setMarkerPosLocal](../commands/setMarkerPosLocal.md)

<sub>Source: [BI Community Wiki — getMarkerPos](https://community.bistudio.com/wiki/getMarkerPos) (revision 377402).</sub>
