GetSoundGain
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{lua-function|getSoundGain|object}} | ||
+ | |||
Get the sound gain. | Get the sound gain. | ||
− | Example | + | '''Example:''' Print the sound gain in the console: |
Sound = getObject("Sound") | Sound = getObject("Sound") |
Revision as of 17:04, 8 February 2014
getSoundGain(object)
Get the sound gain.
Example: Print the sound gain in the console:
Sound = getObject("Sound") function onSceneUpdate() SndGain = getSoundGain(Sound) if isKeyPressed("A") then print(SndGain) end end