HU/isSoundPaused: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function hu}} This function is used to return the current pause state of the specified sound element. {{New feature/item|3.0132|1.3.2|| If the ele...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function hu}} | {{Client function hu}} | ||
Ez a funkció a megadott [[sound|hang]][[element|elem]] jelenlegi szünetállapotának visszaadására szolgál. | |||
{{New feature/item|3.0132|1.3.2|| | {{New feature/item|3.0132|1.3.2|| | ||
Ha az elem egy [[player|játékos]], akkor ez a funkció a játékos hangját fogja használni. | |||
}} | }} | ||
== | ==Szintaxis== | ||
<syntaxhighlight lang="lua">bool isSoundPaused ( element theSound )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isSoundPaused ( element theSound )</syntaxhighlight> | ||
{{OOP||[[sound]]:isPaused|paused|setSoundPaused}} | {{OOP||[[sound]]:isPaused|paused|setSoundPaused}} | ||
=== | ===Kötelező argumentumok=== | ||
*'''theSound:''' the [[sound]] [[element]] which pause state you want to return. | *'''theSound:''' the [[sound]] [[element]] which pause state you want to return. | ||
=== | ===Visszaadott érték=== | ||
Returns ''true'' if the [[sound]] [[element]] is paused, ''false'' if unpaused or invalid arguments were passed. | Returns ''true'' if the [[sound]] [[element]] is paused, ''false'' if unpaused or invalid arguments were passed. | ||
== | ==Példa== | ||
This example will check and see if the sound is paused or not, and tell the player. | This example will check and see if the sound is paused or not, and tell the player. | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> |
Revision as of 20:15, 19 July 2018
Ez a funkció a megadott hangelem jelenlegi szünetállapotának visszaadására szolgál.
Ha az elem egy játékos, akkor ez a funkció a játékos hangját fogja használni.
Szintaxis
bool isSoundPaused ( element theSound )
OOP Syntax Help! I don't understand this!
- Method: sound:isPaused(...)
- Variable: .paused
- Counterpart: setSoundPaused
Kötelező argumentumok
Visszaadott érték
Returns true if the sound element is paused, false if unpaused or invalid arguments were passed.
Példa
This example will check and see if the sound is paused or not, and tell the player.
Click to collapse [-]
ClienttheSound = playSound("music/song.mp3") function checkSongPause() local pause = isSoundPaused(theSound) if(pause == true) then outputChatBox("The sound is paused!") else outputChatBox("The sound is not paused!") end end addCommandHandler("checkpause", checkSongPause)
Changelog
Version | Description |
---|
1.3.2 | Added player element to use a players voice |
See Also
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound