{"name":"stopSound","operator":null,"title":"stopSound","type":"command","url":"https://community.bistudio.com/wiki/stopSound","revid":379071,"updated":"2026-09-25T11:47:34Z","groups":["Sounds"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.12"}],"since":{"game":"arma3","name":"Arma 3","version":"2.12"},"arma3_since":"2.12","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Terminates the given sound. If sound object provided, such as say3D and there is .lip file playback attached, this playback will also terminate.","syntaxes":[{"syntax":"stopSound id or sound","since":null,"effect":null,"exec":null,"params":[{"name":"id","type":"Number","optional":false,"default":null,"description":"id returned by playSoundUI and playSound3D commands\n\n> [!IMPORTANT]\n> Sound ids are **local**.","types":["Number"],"since":null,"text":"id: Number - id returned by playSoundUI and playSound3D commands\n\n> [!IMPORTANT]\n> Sound ids are **local**."},{"name":"sound","type":"Object","optional":false,"default":null,"description":"sound object such as say3D, in which case the particular sound is stopped, or entity such as soldier, then all say3D sounds current and queued are stopped. Note that passing NetObject, when say3D is executed with 'isGlobal' option, will cause error. To stop global sound one needs to destroy the source, i.e. kill the speaking unit.","types":["Object"],"since":"arma3 2.24","text":"sound: Object - sound object such as say3D, in which case the particular sound is stopped, or entity such as soldier, then all say3D sounds current and queued are stopped. Note that passing NetObject, when say3D is executed with 'isGlobal' option, will cause error. To stop global sound one needs to destroy the source, i.e. kill the speaking unit."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"id or sound","types":[]}}],"examples":[{"text":"```sqf\nstopSound 10;\n```","code":["stopSound 10;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["playSoundUI","playSound3D","soundParams"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Sounds","Introduced with Arma 3 version 2.12","Scripting Commands","Scripting Commands: Local Effect"]}