GetSoundGain
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
Line 2: | Line 2: | ||
Get the sound gain. | Get the sound gain. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
'''Example:''' Print the sound gain in the console: | '''Example:''' Print the sound gain in the console: |
Latest revision as of 00:02, 9 February 2014
getSoundGain(object)
Get the sound gain.
-
object
: object to operate on
Example: Print the sound gain in the console:
Sound = getObject("Sound") function onSceneUpdate() SndGain = getSoundGain(Sound) if isKeyPressed("A") then print(SndGain) end end