---
name: "setMarkerShape"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setMarkerShape
revid: 370121
updated: 2024-11-01T19:51:56Z
---

# setMarkerShape

*Command · Markers · Arma 3 v0.50 · introduced in Armed Assault v1.00*

Locality: effect **global**

## Description

Selects shape (actual type) of the marker. Non-existing marker shape defaults to "RECTANGLE".

## Syntax

```sqf
markerName setMarkerShape shape
```

**Parameters:**

- `markerName`: [String](../topics/String.md)
- `shape`: [String](../topics/String.md) - the shape, can be one of:
  - `"ICON"`
  - `"RECTANGLE"`
  - `"ELLIPSE"`
  - Arma 3 v1.60 `"POLYLINE"`
  - Arma 3 v2.20 `"TRIANGLE"`
  - Arma 3 v2.20 `"PENTAGON"`
  - Arma 3 v2.20 `"HEXAGON"`
  - Arma 3 v2.20 `"HEPTAGON"`
  - Arma 3 v2.20 `"OCTAGON"`
  - Arma 3 v2.20 `"NONAGON"`
  - Arma 3 v2.20 `"DECAGON"`

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

## Examples

### Example 1

```sqf
"Marker1" setMarkerShape "RECTANGLE";
```

## Multiplayer

> [!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).

## See also

[markerShape](../commands/markerShape.md) · [setMarkerShapeLocal](../commands/setMarkerShapeLocal.md)

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