Enigma666 Posted March 13, 2014 Posted March 13, 2014 Hello, So, i have, for example, a car lock opening sound. Now i want that sound to play for every player in a certain distance, when a certain event is triggered. I want it to work like how playSound3D does, so if i go further from that place, the sound volume is a bit lower. How can i do that? Thanks.
Driggero Posted March 13, 2014 Posted March 13, 2014 What's wrong with just using playSound3D? You could get the players distance from the sound and set the sound volume lower the further they are away, but why go to the trouble when playSound3D does it all for you?
Driggero Posted March 13, 2014 Posted March 13, 2014 Yes, but so is playSound and all the other audio functions. The idea is you trigger the event from the server to ALL clients, then every client hears the same sound (if they are within distance).
Anubhav Posted March 13, 2014 Posted March 13, 2014 https://wiki.multitheftauto.com/wiki/SetSoundMaxDistance This what you need i think.
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