IsSoundPaused: Difference between revisions
Jump to navigation
Jump to search
m (→Syntax) |
|||
Line 10: | Line 10: | ||
{{OOP||[[sound]]:isPaused|paused|setSoundPaused}} | {{OOP||[[sound]]:isPaused|paused|setSoundPaused}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theSound: | *'''theSound:''' Звуковой элемент, статус которого вы хотите вернуть. | ||
===Returns=== | ===Returns=== |
Revision as of 14:44, 29 October 2016
This function is used to return the current pause state of the specified sound element.
If the element is a player, this function will use the players voice.
Syntax
bool isSoundPaused ( element theSound )
OOP Syntax Help! I don't understand this!
- Method: sound:isPaused(...)
- Variable: .paused
- Counterpart: setSoundPaused
Required Arguments
- theSound: Звуковой элемент, статус которого вы хотите вернуть.
Returns
Ответ будет true если указанный звуковой элемент на паузе, false если звуковой элемент снят с паузы,или не найден.
Example
Этот пример проверит стоит ли звуковой элемент на паузе или нет, и отобразит ответ игроку.
Click to collapse [-]
ClienttheSound = playSound("music/song.mp3") function checkSongPause() local pause = isSoundPaused(theSound) if(pause == true) then outputChatBox("Звуковой элемент на паузе!") else outputChatBox("Звуковой элемент не на паузе!") end end addCommandHandler("checkpause", checkSongPause)
Changelog
Version | Description |
---|
1.3.2 | Added player element to use a players voice |
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