SetSoundGain
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) 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 00: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%