SetSoundGain

(Difference between revisions)
Jump to: navigation, search
m
Line 2: Line 2:
  
 
Change the current sound gain.
 
Change the current sound gain.
 +
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|gain|gain of sound}}
  
 
'''Note:'''
 
'''Note:'''

Revision as of 01:02, 9 February 2014

setSoundGain(object, gain)

Change the current sound gain.

  • object : object to operate on
  • gain : gain of sound

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