Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Plays a sound from CfgSounds (see CfgSounds in the VBS3 Developer Reference), which is either already part of VBS2, or declared in CfgSounds.

Syntax

Syntax:playSound soundName
Parameters:
  • soundName: String - Sound to play.
Return Value:Nothing

Alternative Syntax

Syntax:playSound [soundName, volumeChange] (V2.00+)
Parameters:
Return Value:Nothing

Examples

Examples:
playSound "m11v01"playSound ["m11v03",true]
Demo mission playing any available sounds: soundBrowser.zip

Additional Information

See also: sideRadio, say, playMusic, createSoundSource, CfgSounds
Multiplayer: 
Problems: 

Notes







Posted on August 4, 2006 - 10:57
hardrock
Notes from before the conversion:


For dialogue involving living units it is better to use say.
playSound will play a sound at the location of the player, say will play a sound at the location of the unit that is speaking, and it will only play that sound if the unit is alive.