RO/getSoundMaxDistance
From Multi Theft Auto: Wiki
Obține distanța maximă de redare a unui sound fără ca acesta să fie oprit.
Sintaxă
int getSoundMaxDistance (element sound)
OOP Syntax Help! I don't understand this!
- Method: sound:getMaxDistance(...)
- Variable: .maxDistance
- Counterpart: setSoundMaxDistance
Argumente Necesare
- sound: un element de tip sound.
Redare
Redă un integer a distanței maxime, false dacă au fost trimise argumente nevalide.
Exemplu
Acest exemplu obține distanța maximă de redare a sunetului specificat atunci când jucătorul tastează comanda /getmaxdistance.
Click to collapse [-]
Clientlocal sound = playSound3D("sounds/song.mp3", 373.14, -125.21, 1001, true) function getmaxdistanceFunc() outputChatBox("Distanță maximă: " .. getSoundMaxDistance(sound)) end addCommandHandler("getmaxdistance", getmaxdistanceFunc)
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