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

# markerPos

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

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

## Description

Returns marker position. See also [setMarkerPos](../commands/setMarkerPos.md).

## Syntax

### Syntax 1

```sqf
markerPos markerName
```

**Parameters:**

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

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

### Syntax 2

*since arma3 1.94*

```sqf
markerPos [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 = markerPos "markerOne";
```

### Example 2

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

## See also

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

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