RO/SetSoundPaused
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Această funcție este utilizată pentru a pune pe pauză sau scoate de pe pauză redarea unui element specific de tip sound.
Utilizați elementul 'jucător' pentru a utiliza vocea jucătorului.
Sintaxă
bool setSoundPaused(element theSound, bool paused)
OOP Syntax Help! I don't understand this!
- Method: sound:setPaused(...)
 - Variable: .paused
 - Counterpart: isSoundPaused
 
Argumente Necesare
- theSound: element-ul de tipsound pe care doriți să-l puneți/scoateți pe/de pe pauză.
 - paused: o valoare de tip boolean care să specifice dacă sunetul să fie sau nu pus pe pauză. Pentru a pune pe pauză un sunet, folosiți true.
 
Redare
Redă true dacă element-ul de tip sound a fost pus pe pauză cu succes. În caz contrar, false.
Exemplu
Click to collapse [-]
ClienttheSound = playSound("music/song.mp3", true)
function togglePausedSound()
    if (isSoundPaused(theSound)) then -- Verificăm dacă sunetul este pus pe pauză;
        setSoundPaused(theSound, false)
    else -- Dacă nu este pus pe pauză, îl punem;
        setSoundPaused(theSound, true)
    end
end
addCommandHandler("pausesound", togglePausedSound)
Changelog
| Versiune | Descriere | 
|---|
| 1.3.2 | Adăugat elementul 'jucător' pentru a utiliza vocea jucătorului | 
Vizualizați de asemenea
- RO/getRadioChannel
 - RO/getRadioChannelName
 - RO/getSFXStatus
 - RO/getSoundBPM
 - RO/getSoundEffects
 - RO/getSoundFFTData
 - RO/getSoundLength
 - RO/getSoundLevelData
 - RO/getSoundMaxDistance
 - RO/getSoundMetaTags
 - RO/getSoundMinDistance
 - RO/getSoundPan
 - RO/getSoundPosition
 - RO/getSoundProperties
 - RO/getSoundSpeed
 - RO/getSoundVolume
 - RO/getSoundWaveData
 - RO/isSoundPanningEnabled
 - RO/isSoundPaused
 - RO/playSFX
 - RO/playSFX3D
 - RO/playSound
 - RO/playSound3D
 - RO/playSoundFrontEnd
 - RO/setRadioChannel
 - RO/setSoundEffectEnabled
 - RO/setSoundMaxDistance
 - RO/setSoundMinDistance
 - RO/setSoundPan
 - RO/setSoundPanningEnabled
 - RO/setSoundPaused
 - RO/setSoundPosition
 - RO/setSoundProperties
 - RO/setSoundSpeed
 - RO/setSoundVolume
 - RO/stopSound