stopSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.14 |branch= dev |gr1= Sounds |descr= Stops the given sound |s1= stopSound id |p1= id: Number - id returned by playS...")
 
(Add locality + warning box)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.14
|version1= 2.12
|branch= dev
 
|eff= local


|gr1= Sounds
|gr1= Sounds
Line 11: Line 12:
|s1= [[stopSound]] id
|s1= [[stopSound]] id


|p1= id: [[Number]] - id returned by [[playSoundUI]] and [[playSound3D]] commands
|p1= id: [[Number]] - id returned by [[playSoundUI]] and [[playSound3D]] commands{{Feature|important|Sound ids are '''local'''.}}


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 17: Line 18:
|x1= <sqf>stopSound 10;</sqf>
|x1= <sqf>stopSound 10;</sqf>


|seealso= [[playSoundUI]] [[playSound3D]] [[soundParams]]
|seealso= [[playSoundUI]] [[playSound3D]] [[soundParams]]
}}
}}

Latest revision as of 13:24, 20 March 2024

Hover & click on the images for description

Description

Description:
Stops the given sound
Groups:
Sounds

Syntax

Syntax:
stopSound id
Parameters:
id: Number - id returned by playSoundUI and playSound3D commands
Sound ids are local.
Return Value:
Nothing

Examples

Example 1:
stopSound 10;

Additional Information

See also:
playSoundUI playSound3D soundParams

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note