SetSoundGain
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{lua-function|setSoundGain|object, gain}} | ||
+ | |||
Change the current sound gain. | Change the current sound gain. | ||
− | The maximum value is 1 | + | '''Note:''' |
− | The lowest value is 0 | + | * The maximum value is 1 |
+ | * The lowest value is 0 | ||
− | + | '''Example:''' | |
setSoundGain(Sound, 0.5) ''--set sound volume at 50%'' | setSoundGain(Sound, 0.5) ''--set sound volume at 50%'' |
Revision as of 17: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%