denny199 Posted March 10, 2014 Share Posted March 10, 2014 Hi guys, What do you think about this function: bool setVoiceVolume (element thePlayer,float volume ) thePlayer -> The player who's voice volume will be set volume -> A floating point number representing the desired players voice volume level. Range is from 0.0 to 1.0 (0 to 100%) It would be pretty good to make 3D voice chats(make it smoother when a player walks nearby it), is this already suggested or what (i'm writing this via my ipod) Would you like to see such thing? Kindly regards, Danny Link to comment
Castillo Posted March 10, 2014 Share Posted March 10, 2014 https://wiki.multitheftauto.com/wiki/SetSoundVolume This function is used to change the volume level of the specified sound element. Use a player element to control a players voice with this function. Isn't that the same? Link to comment
Spajk Posted March 11, 2014 Share Posted March 11, 2014 No, he wants to change the volume of a player's voice. ( microphone ) Link to comment
Castillo Posted March 11, 2014 Share Posted March 11, 2014 Oh well, I thought by voice it was refering to the microphone at the wiki page, I forgot about the ped voices . Link to comment
denny199 Posted March 11, 2014 Author Share Posted March 11, 2014 Yeah, I mean on the microphone, was this already suggested before, or do I need to make a request on the bugtracker?? Link to comment
Jusonex Posted March 14, 2014 Share Posted March 14, 2014 No, there is no need to create a new request. Solidsnake14 was already right. If you pass a player to setSoundVolume, you'll change the player's microphone volume. Link to comment
Castillo Posted March 14, 2014 Share Posted March 14, 2014 No, there is no need to create a new request.Solidsnake14 was already right. If you pass a player to setSoundVolume, you'll change the player's microphone volume. Thanks for making it clear. Link to comment
denny199 Posted March 20, 2014 Author Share Posted March 20, 2014 Late post I hadn't really time for test it etc., Hehe, thanks guys, I didn't know it because the wiki wasn't 100% clear. The wiki says under "setSoundVolume" : theSound: The sound element which volume you want to modify. And if you look at the elements(https://wiki.multitheftauto.com/wiki/Element) and then under sound (https://wiki.multitheftauto.com/wiki/Element/Sound): The sound element represents a custom sound sent to the client via the use of the file parameter inside the meta file and created either by playSound or playSound3D.A sound element is created using playSound3D or playSound and can be manipulated with the following element functions:. setElementPosition setElementDimension Sound elements can also be manipulated using the other Client audio functions. The element type of this class is "sound". So theres nothing about voicechat in it, but thanks anyways. Testing "divbox=", awesome hexcodes works Regards, Danny Link to comment
Jusonex Posted March 27, 2014 Share Posted March 27, 2014 You skipped the second part of the description Use a player element to control a players voice with this function. https://wiki.multitheftauto.com/wiki/SetSoundVolume Link to comment
denny199 Posted March 28, 2014 Author Share Posted March 28, 2014 You skipped the second part of the description Use a player element to control a players voice with this function. https://wiki.multitheftauto.com/wiki/SetSoundVolume Wasn't there when I posted this... Link to comment
Castillo Posted March 28, 2014 Share Posted March 28, 2014 It was there, that's why I posted it in the first place. Anyway, this is kinda off-topic, it's already solved. Link to comment
Recommended Posts