Description
Terminates the given sound. If sound object provided, such as say3D and there is .lip file playback attached, this playback will also terminate.
Syntax
stopSound id or sound
Parameters:
-
id: Number - id returned by playSoundUI and playSound3D commandsImportant
Sound ids are local.
-
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. (since arma3 2.24)
Returns: Nothing
Examples
Example 1
stopSound 10;