Jump to content

setVoiceVolume


denny199

Recommended Posts

Posted

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

Sometimes I dream about cheese

Posted

Oh well, I thought by voice it was refering to the microphone at the wiki page, I forgot about the ped voices :P.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Yeah, I mean on the microphone, was this already suggested before, or do I need to make a request on the bugtracker??

Sometimes I dream about cheese

Posted

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.

Posted
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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 xD

Regards,

Danny

Sometimes I dream about cheese

Posted

It was there, that's why I posted it in the first place.

Anyway, this is kinda off-topic, it's already solved.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...