---
name: "setMarkerPos"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setMarkerPos
revid: 377245
updated: 2026-01-02T05:03:33Z
---

# setMarkerPos

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

Locality: effect **global**

## Description

Moves the marker. If position is given in 3D format, `z` coordinate is stored with the marker and will be used when marker is passed to commands like [createVehicle](../commands/createVehicle.md), [createUnit](../commands/createUnit.md), [createAgent](../commands/createAgent.md), [createMine](../commands/createMine.md), [setVehiclePosition](../commands/setVehiclePosition.md) for example. In case of an object, the object's model [0,0,0] is used.

> [!NOTE]
> **Multiplayer optimisation:** Global marker commands always broadcast the *entire* marker state over the network.
> As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).

## Syntax

```sqf
markerName setMarkerPos position
```

**Parameters:**

- `markerName`: [String](../topics/String.md)
- `position`: [Position2D](../topics/Position.md#introduction) or [PositionAGL](../topics/Position.md#positionagl) or Arma 3 v1.94 [Object](../topics/Object.md). In case of an object, the object's model [0,0,0] is used.

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
"MarkerOne" setMarkerPos getMarkerPos "MarkerTwo";
```

## See also

[setMarkerPosLocal](../commands/setMarkerPosLocal.md) · [setMarkerBrush](../commands/setMarkerBrush.md) · [setMarkerColor](../commands/setMarkerColor.md) · [setMarkerDir](../commands/setMarkerDir.md) · [createMarker](../commands/createMarker.md) · [setMarkerShape](../commands/setMarkerShape.md) · [setMarkerSize](../commands/setMarkerSize.md) · [setMarkerText](../commands/setMarkerText.md) · [setMarkerType](../commands/setMarkerType.md) · [setMarkerAlpha](../commands/setMarkerAlpha.md)

## Community notes

**Pulverizer** — 2007-03-23

Effect is local in OFP.

---

**Dr Eyeball** — 2009-08-07

The marker position can actually be set in 3D. This has a benefit for respawn markers, when placed at the correct altitude ASL on the LHD, the correct altitude will be used for respawn.
There is no particular benefit for regular markers since [markerPos](../commands/markerPos.md) will still return 0 for the altitude array element. // Tip obtained from Xeno

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