---
name: "markerColor"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/markerColor
revid: 370049
updated: 2024-10-29T12:21:16Z
---

# markerColor

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

## Description

Returns colour of the given marker. See also [setMarkerColor](../commands/setMarkerColor.md)/[Local](../commands/setMarkerColorLocal.md).

## Syntax

```sqf
markerColor markerName
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
if (markerColor "Marker1" == "ColorRed") then { hint "Marker1 is red!" };
```

### Example 2

```sqf
"mySuperMarker" setMarkerColor "#(0,1000,0,0.50000)";    // full green, 50% alpha
private _colour = markerColor "mySuperMarker";            // return properly-formatted custom value, here #(0,1,0,0.5)
if (_colour select [0, 1] == "#") then { hint "this marker has a custom colour!" };
```

## See also

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

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