---
name: "setSoundEffect"
type: command
status: ok
groups: ["Sounds", "Triggers", "Waypoints"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setSoundEffect
revid: 377738
updated: 2026-01-03T00:57:45Z
---

# setSoundEffect

*Command · Sounds, Triggers, Waypoints · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Defines the different sound effects for a trigger or a waypoint. To stop any sound, deactivate the trigger (might take up to 0.5 seconds to stop) or delete the trigger/waypoint (immediate).

## Syntax

### Syntax 1

```sqf
trigger setSoundEffect [sound, voice, soundEnv, soundDet]
```

**Parameters:**

- `trigger`: [Object](../topics/Object.md)
- `sound`: [String](../topics/String.md) - plays a 2D sound as if [playSound](../commands/playSound.md) was used from CfgSounds (mission or main config). Use `"$NONE$"` for an empty sound
- `voice`: [String](../topics/String.md) - attaches a 3D sound from CfgSounds (mission or main config) to the object that activated the trigger and plays it as if [say3D](../commands/say3D.md) was used
- `soundEnv`: [String](../topics/String.md) - plays an environmental sound from CfgEnvSounds (mission or main config)
- `soundDet`: [String](../topics/String.md) - creates a dynamic sound object attached to a trigger defined in CfgSFX (mission or main config)

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

### Syntax 2

```sqf
waypoint setSoundEffect [sound, voice]
```

**Parameters:**

- `waypoint`: Waypoint
- `sound`: [String](../topics/String.md) - plays a 2D sound as if [playSound](../commands/playSound.md) was used from CfgSounds (mission or main config)
- `voice`: [String](../topics/String.md) - attaches a 3D sound from CfgSounds (mission or main config) to the object that activated the trigger and plays it as if [say3D](../commands/say3D.md) was used

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

## Examples

### Example 1

```sqf
_trigger setSoundEffect ["Alarm", "", "", ""];
```

### Example 2

```sqf
[_group1, 2] setSoundEffect ["Alarm", ""];
```

### Example 3

```sqf
_trigger setSoundEffect ["$NONE$", "Alarm", "", ""];
```

### Example 4

```sqf
_trigger setSoundEffect ["$NONE$", "", "BattlefieldExplosions3", ""];
```

### Example 5

```sqf
_trigger setSoundEffect ["$NONE$", "", "", "Owl"];
```

## See also

[createTrigger](../commands/createTrigger.md) · [setMusicEffect](../commands/setMusicEffect.md) · [setTitleEffect](../commands/setTitleEffect.md)

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