SetSoundGain

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
{{lua-function|setSoundGain|object, gain}}
 +
 
Change the current sound gain.
 
Change the current sound gain.
  
The maximum value is 1<br />
+
'''Note:'''
The lowest value is 0
+
* The maximum value is 1
 +
* The lowest value is 0
  
Basic Usage :
+
'''Example:'''
  
 
     setSoundGain(Sound, 0.5) ''--set sound volume at 50%''
 
     setSoundGain(Sound, 0.5) ''--set sound volume at 50%''

Revision as of 18:05, 8 February 2014

setSoundGain(object, gain)

Change the current sound gain.

Note:

  • The maximum value is 1
  • The lowest value is 0

Example:

   setSoundGain(Sound, 0.5) --set sound volume at 50%
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox