GetSoundGain
(Difference between revisions)
(Created page with "Get the sound gain. Example, print the sound gain in the console: Sound = getObject("Sound") function onSceneUpdate() SndGain = getSoundGain(Sound) i...") |
Dahnielson (Talk | contribs) |
||
Line 8: | Line 8: | ||
if isKeyPressed("A") then print(SndGain) end | if isKeyPressed("A") then print(SndGain) end | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] |
Revision as of 18:08, 4 February 2014
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