SetSoundFadeOut: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetSoundFadeOut(sound, Duration, VolumeLevel)}} {{FuncParameters}} {{FuncParam|sound|__EDIT_ME__}}..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the sound to fade out.}} | ||
{{FuncSyntax|SetSoundFadeOut(sound, Duration, VolumeLevel)}} | {{FuncSyntax|SetSoundFadeOut(sound, Duration, VolumeLevel)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|sound| | {{FuncParam|sound|The sound identifier.}} | ||
{{FuncParam|Duration| | {{FuncParam|Duration|The duration of the fade out effect.}} | ||
{{FuncParam|VolumeLevel| | {{FuncParam|VolumeLevel|The volume for the sound to fade to.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success, '''false''' on error.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetSoundFadeIn(soundId, 1000, 0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{SoundFunctions}} |
Latest revision as of 19:33, 31 December 2019
Description
Set the sound to fade out.
Syntax
SetSoundFadeOut(sound, Duration, VolumeLevel)
Parameters
- sound
The sound identifier. - Duration
The duration of the fade out effect. - VolumeLevel
The volume for the sound to fade to.
Return Value
- Returns true on success, false on error.
Example
SetSoundFadeIn(soundId, 1000, 0)