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

# setMarkerAlpha

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

Locality: effect **global**

## Description

Sets the marker alpha. This is a modifier to the existing [markerColor](../commands/markerColor.md) and will be applied on top of the marker color alpha. The marker is modified on all computers in a network session.

When alpha equals `1`, the marker is visible, but if alpha equals `0`, then the marker is invisible.

Alpha can be numbers and fractions.

> [!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
marker setMarkerAlpha alpha
```

**Parameters:**

- `marker`: [String](../topics/String.md)
- `alpha`: [Number](../topics/Number.md)

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

## Examples

### Example 1

```sqf
"my_marker" setMarkerAlpha 0.5;
```

### Example 2

```sqf
"enemy_convoy_marker" setMarkerAlpha 0;
```

## See also

[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) · [setMarkerType](../commands/setMarkerType.md) · [createMarker](../commands/createMarker.md)

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