PlaySound: Difference between revisions
Jump to navigation
Jump to search
Cazomino05 (talk | contribs) (→Syntax) |
Cazomino05 (talk | contribs) |
||
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
{{ | {{Client_audio_functions}} |
Revision as of 20:18, 26 December 2008
Plays a specified sound for the local player.
Syntax
element playSound ( string sound, [ bool looped ] )
Required Arguments
- sound: Filename of the sound you want to play. (sent to client via file xml tag in meta)
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- looped: True if looped, False otherwise.
Returns
Returns a sound element if the sound was successfully played, false otherwise.
Example
TODO
Click to collapse [-]
Client--TODO
See Also
- getRadioChannel
- getRadioChannelName
- getSFXStatus
- getSoundBPM
- getSoundBufferLength
- getSoundEffectParameters
- getSoundEffects
- getSoundFFTData
- getSoundLength
- getSoundLevelData
- getSoundMaxDistance
- getSoundMetaTags
- getSoundMinDistance
- getSoundPan
- getSoundPosition
- getSoundProperties
- getSoundSpeed
- getSoundVolume
- getSoundWaveData
- isSoundLooped
- isSoundPanningEnabled
- isSoundPaused
- playSFX3D
- playSFX
- playSound3D
- playSound
- setRadioChannel
- setSoundEffectEnabled
- setSoundEffectParameter
- setSoundLooped
- setSoundMaxDistance
- setSoundMinDistance
- setSoundPan
- setSoundPanningEnabled
- setSoundPaused
- setSoundPosition
- setSoundProperties
- setSoundSpeed
- setSoundVolume
- stopSound
- Shared
- playSoundFrontEnd