{"name":"setSoundEffect","operator":null,"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","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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]","since":null,"effect":null,"exec":null,"params":[{"name":"trigger","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"trigger: Object"},{"name":"sound","type":"String","optional":false,"default":null,"description":"plays a 2D sound as if playSound was used from CfgSounds (mission or main config). Use `\"$NONE$\"` for an empty sound","types":["String"],"since":null,"text":"sound: String - plays a 2D sound as if playSound was used from CfgSounds (mission or main config). Use `\"$NONE$\"` for an empty sound"},{"name":"voice","type":"String","optional":false,"default":null,"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","types":["String"],"since":null,"text":"voice: String - 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"},{"name":"soundEnv","type":"String","optional":false,"default":null,"description":"plays an environmental sound from CfgEnvSounds (mission or main config)","types":["String"],"since":null,"text":"soundEnv: String - plays an environmental sound from CfgEnvSounds (mission or main config)"},{"name":"soundDet","type":"String","optional":false,"default":null,"description":"creates a dynamic sound object attached to a trigger defined in CfgSFX (mission or main config)","types":["String"],"since":null,"text":"soundDet: String - creates a dynamic sound object attached to a trigger defined in CfgSFX (mission or main config)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"trigger","types":["Object"]},"right":{"text":"[sound, voice, soundEnv, soundDet]","types":["Array"]}},{"syntax":"waypoint setSoundEffect [sound, voice]","since":null,"effect":null,"exec":null,"params":[{"name":"waypoint","type":"Waypoint","optional":false,"default":null,"description":null,"types":["Waypoint"],"since":null,"text":"waypoint: Waypoint"},{"name":"sound","type":"String","optional":false,"default":null,"description":"plays a 2D sound as if playSound was used from CfgSounds (mission or main config)","types":["String"],"since":null,"text":"sound: String - plays a 2D sound as if playSound was used from CfgSounds (mission or main config)"},{"name":"voice","type":"String","optional":false,"default":null,"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","types":["String"],"since":null,"text":"voice: String - 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"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"waypoint","types":["Waypoint"]},"right":{"text":"[sound, voice]","types":["Array"]}}],"examples":[{"text":"```sqf\n_trigger setSoundEffect [\"Alarm\", \"\", \"\", \"\"];\n```","code":["_trigger setSoundEffect [\"Alarm\", \"\", \"\", \"\"];"]},{"text":"```sqf\n[_group1, 2] setSoundEffect [\"Alarm\", \"\"];\n```","code":["[_group1, 2] setSoundEffect [\"Alarm\", \"\"];"]},{"text":"```sqf\n_trigger setSoundEffect [\"$NONE$\", \"Alarm\", \"\", \"\"];\n```","code":["_trigger setSoundEffect [\"$NONE$\", \"Alarm\", \"\", \"\"];"]},{"text":"```sqf\n_trigger setSoundEffect [\"$NONE$\", \"\", \"BattlefieldExplosions3\", \"\"];\n```","code":["_trigger setSoundEffect [\"$NONE$\", \"\", \"BattlefieldExplosions3\", \"\"];"]},{"text":"```sqf\n_trigger setSoundEffect [\"$NONE$\", \"\", \"\", \"Owl\"];\n```","code":["_trigger setSoundEffect [\"$NONE$\", \"\", \"\", \"Owl\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createTrigger","setMusicEffect","setTitleEffect"],"notes":[],"categories":[]}