PT-BR/getSoundMinDistance: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
==See Also== | ==See Also== | ||
{{ | {{PT-BR/Funcoes_audio_client}} | ||
[[EN:getSoundMinDistance]] | [[EN:getSoundMinDistance]] |
Revision as of 00:03, 18 August 2021
Obtém a distância mínima em que um áudio pra de ficar mais alto.
Sintaxe
int getSoundMinDistance ( element audio )
Sintaxe POO(OOP) Não entendeu o que significa isso?
- Método: audio:getMinDistance(...)
- Variável: .minDistance
- Oposto: setSoundMinDistance
Argumentos necessários
- audio: um elemento de áudio.
Retorno
Retorna um inteiro representando a distância mínima ou false caso for fornecido um parâmetro inválido.
Exemplo
Click to collapse [-]
Clientlocal audio = playSound3D("audios/song.mp3", 373.14, -125.21, 1001, true) function distanceFunc() outputChatBox("Distância mínima: " .. getSoundMinDistance(audio)) end addCommandHandler("obterdistancia", distanceFunc)
See Also
getSoundEffectParameters
getSoundFFTData
getSoundLength
getSoundLevelData
getSoundMaxDistance
getSoundMetaTags
getSoundMinDistance
getSoundPan
getSoundPosition
getSoundProperties
getSoundSpeed
getSoundVolume
getSoundWaveData