---
name: "getMarkerColor"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getMarkerColor
revid: 369401
updated: 2024-09-03T18:43:21Z
---

# getMarkerColor

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

## Description

Returns marker color for given marker.

> [!NOTE]
> This command is identical to [markerColor](../commands/markerColor.md).

## Syntax

```sqf
getMarkerColor markerName
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
"MarkerOne" setMarkerColor "ColorBlack";
_color = getMarkerColor "MarkerOne"; // returns "ColorBlack"
```

## See also

[setMarkerColor](../commands/setMarkerColor.md) · [setMarkerColorLocal](../commands/setMarkerColorLocal.md)

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