SetSoundGain
From MaratisWiki
(Difference between revisions)
(Created page with "Change the current sound gain. The maximum value is 1<br /> The lowest value is 0 Basic Usage : setSoundGain(Sound, 0.5) ''--set sound volume at 50%''") |
Dahnielson (Talk | contribs) m |
||
| (4 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{lua-function|setSoundGain|object, gain}} | ||
| + | |||
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}} | |
| − | + | ||
| − | + | ||
setSoundGain(Sound, 0.5) ''--set sound volume at 50%'' | setSoundGain(Sound, 0.5) ''--set sound volume at 50%'' | ||
| + | |||
| + | '''Note:''' | ||
| + | * The maximum value is 1 | ||
| + | * The lowest value is 0 | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Sound]] | ||
Latest revision as of 00:03, 9 February 2014
setSoundGain(object, gain)
Change the current sound gain.
-
object: object to operate on -
gain: gain of sound
setSoundGain(Sound, 0.5) --set sound volume at 50%
Note:
- The maximum value is 1
- The lowest value is 0