{"name":"setSoundEffect","title":"setSoundEffect","type":"command","url":"https://community.bistudio.com/wiki/setSoundEffect","revid":377738,"updated":"2026-01-03T00:57:45Z","groups":["Sounds","Triggers","Waypoints"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","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).","syntaxes":[{"syntax":"trigger setSoundEffect [sound, voice, soundEnv, soundDet]","params":[{"name":"trigger","type":"Object","type_expr":"Object"},{"name":"sound","type":"String","description":"plays a 2D sound as if playSound was used from CfgSounds (mission or main config). Use `\"$NONE$\"` for an empty sound","type_expr":"String"},{"name":"voice","type":"String","description":"attaches a 3D sound from CfgSounds (mission or main config) to the object that activated the trigger and plays it as if say3D was used","type_expr":"String"},{"name":"soundEnv","type":"String","description":"plays an environmental sound from CfgEnvSounds (mission or main config)","type_expr":"String"},{"name":"soundDet","type":"String","description":"creates a dynamic sound object attached to a trigger defined in CfgSFX (mission or main config)","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"trigger"},"right":{"text":"[sound, voice, soundEnv, soundDet]"}},{"syntax":"waypoint setSoundEffect [sound, voice]","params":[{"name":"waypoint","type":"Waypoint","type_expr":"Waypoint"},{"name":"sound","type":"String","description":"plays a 2D sound as if playSound was used from CfgSounds (mission or main config)","type_expr":"String"},{"name":"voice","type":"String","description":"attaches a 3D sound from CfgSounds (mission or main config) to the object that activated the trigger and plays it as if say3D was used","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"waypoint"},"right":{"text":"[sound, voice]"}}],"examples":[{"code":["_trigger setSoundEffect [\"Alarm\", \"\", \"\", \"\"];"]},{"code":["[_group1, 2] setSoundEffect [\"Alarm\", \"\"];"]},{"code":["_trigger setSoundEffect [\"$NONE$\", \"Alarm\", \"\", \"\"];"]},{"code":["_trigger setSoundEffect [\"$NONE$\", \"\", \"BattlefieldExplosions3\", \"\"];"]},{"code":["_trigger setSoundEffect [\"$NONE$\", \"\", \"\", \"Owl\"];"]}],"see_also":["createTrigger","setMusicEffect","setTitleEffect"]}