ODutii Posted October 22, 2019 Share Posted October 22, 2019 Boa tarde, estou com um problema, tenho meu Client-Side, que toca o som e fica no looping, oq devo mudar para tocar apenas 1 vez? e apenas tocar para o player, não para os outros escutarem? local vehiclesSirene = {} addEvent("alertsamu",true) addEventHandler("alertsamu",root, function() vehiclesSirene[source] = playSound3D( "wakeup.mp3", 0,0,0, true ) setSoundMaxDistance(vehiclesSirene[source], 50 ) setSoundVolume (vehiclesSirene[source], 1) attachElements (vehiclesSirene[source], source, 0, 0, 0 ) end) Link to comment
#DeltaSCR Posted October 22, 2019 Share Posted October 22, 2019 (edited) Use playSound, ao invés de playSound3D, pois como ele mesmo já se auto declara, "3D", o som é tocado para todos. Para não haver looping, use o segundo parâmetro como false. Edited October 22, 2019 by #DeltaSCR Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now