---
name: "setMarkerDrawPriority"
type: command
status: ok
groups: ["Markers"]
arma3_since: "2.14"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setMarkerDrawPriority
revid: 373673
updated: 2025-06-09T15:29:58Z
---

# setMarkerDrawPriority

*Command · Markers · Arma 3 v2.14*

Locality: effect **local**

## Description

Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0.

> [!IMPORTANT]
> Be aware that this command has **local** effect despite the command name missing the word **local**!

## Syntax

```sqf
markerName setMarkerDrawPriority priority
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
"MarkerOne" setMarkerDrawPriority 0.5;
```

### Example 2

```sqf
"MarkerTwo" setMarkerDrawPriority -2.1;
```

## Problems

[setMarkerDrawPriority](../commands/setMarkerDrawPriority.md) sorts [allMapMarkers](../commands/allMapMarkers.md) from least to most priority. Before Arma 3 v2.18 [createMarker](../commands/createMarker.md)/[createMarkerLocal](../commands/createMarkerLocal.md) did **not** care about drawing priority and added the created marker to the end of the array, making it top priority. Running [setMarkerDrawPriority](../commands/setMarkerDrawPriority.md) again sorted this issue.

## See also

[markerDrawPriority](../commands/markerDrawPriority.md) · [setMarkerType](../commands/setMarkerType.md) · [setMarkerTypeLocal](../commands/setMarkerTypeLocal.md) · [markerType](../commands/markerType.md) · [setMarkerAlphaLocal](../commands/setMarkerAlphaLocal.md) · [setMarkerBrush](../commands/setMarkerBrush.md) · [setMarkerColor](../commands/setMarkerColor.md) · [setMarkerDir](../commands/setMarkerDir.md) · [setMarkerPos](../commands/setMarkerPos.md) · [setMarkerShape](../commands/setMarkerShape.md) · [setMarkerSize](../commands/setMarkerSize.md) · [setMarkerText](../commands/setMarkerText.md) · [createMarker](../commands/createMarker.md) · CfgMarkers

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