RO/getSoundMinDistance
From Multi Theft Auto: Wiki
Obține distanța minimă de la care volumul de redare al unui sound nu mai crește.
Sintaxă
int getSoundMinDistance(element sound)
OOP Syntax Help! I don't understand this!
- Method: sound:getMinDistance(...)
- Variable: .minDistance
- Counterpart: setSoundMinDistance
Argumente Necesare
- sound: un element de tip sound.
Redare
Redă un integer a distanței minime, false dacă au fost trimise argumente nevalide.
Exemplu
Acest exemplu obține, atunci când jucătorul tastează comanda /getdistance, distanța minimă de la care volumul sunetului specificat nu mai crește.
Click to collapse [-]
Clientlocal sound = playSound3D("sounds/song.mp3", 373.14, -125.21, 1001, true) function distanceFunc() outputChatBox("Distanța minimă: " .. getSoundMinDistance(sound)) end addCommandHandler("getdistance", distanceFunc)
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