SetSoundVolume: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Sets custom sound volume. ==Syntax== <syntaxhighlight lang="lua">bool setSoundPosition ( string sound, float volume )</syntaxhighlight> ===Required Arguments=== *'''sound:''' Nam...)
 
Line 4: Line 4:


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool setSoundPosition ( string sound, float volume )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool setSoundVolume ( string sound, float volume )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
Line 12: Line 12:
===Returns===
===Returns===
Returns ''true'' if the sound volume was successfully changed, ''false'' otherwise.
Returns ''true'' if the sound volume was successfully changed, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 19:47, 26 December 2008

Sets custom sound volume.

Syntax

bool setSoundVolume ( string sound, float volume )

Required Arguments

  • sound: Name of the sound you want to change the volume of.
  • volume: A float representing the desired volume.

Returns

Returns true if the sound volume was successfully changed, false otherwise.

Example

TODO

Click to collapse [-]
Client
--TODO

See Also