Arma 3 Scripting

Command in Sounds, Triggers, Waypoints

setSoundEffect

Also available as Markdown and JSON, or read the original wiki page.

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

trigger setSoundEffect [sound, voice, soundEnv, soundDet]

Parameters:

Returns: Nothing

Syntax 2

waypoint setSoundEffect [sound, voice]

Parameters:

Returns: Nothing

Examples

Example 1

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

Example 2

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

Example 3

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

Example 4

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

Example 5

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

See also

createTrigger · setMusicEffect · setTitleEffect