---
name: "setMarkerDir"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setMarkerDir
revid: 370038
updated: 2024-10-28T20:28:34Z
---

# setMarkerDir

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

Locality: effect **global**

## Description

Sets the orientation of the marker. Angle is in degrees.

> [!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 setMarkerDir angle
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
"Marker1" setMarkerDir 90;
```

## See also

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

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