SetSoundFadeIn: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetSoundFadeIn(sound [, Duration, VolumeLevel, StartTime])}} {{FuncParameters}} {{FuncParam|sound...")
 
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the sound to fade in.}}


{{FuncSyntax|SetSoundFadeIn(sound [, Duration, VolumeLevel, StartTime])}}
{{FuncSyntax|SetSoundFadeIn(sound [, Duration, VolumeLevel, StartTime])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|sound |__EDIT_ME__}}
{{FuncParam|sound |The sound identifier.}}
{{FuncParam|Duration|__EDIT_ME__}}
{{FuncParam|Duration|The duration of the fade in effect.}}
{{FuncParam|VolumeLevel|__EDIT_ME__}}
{{FuncParam|VolumeLevel|The volume for the sound to fade to.}}
{{FuncParamOptional|StartTime|__EDIT_ME__}}
{{FuncParamOptional|StartTime|The duration after which you need the effect to take place.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success, '''false''' on error.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetSoundFadeIn(soundId, 1000, 0, 2000)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{SoundFunctions}}

Latest revision as of 19:32, 31 December 2019

SetSoundFadeIn

Type: Function
Context: Client
Introduced: v1.0

Description

Set the sound to fade in.

Syntax

SetSoundFadeIn(sound [, Duration, VolumeLevel, StartTime])

Parameters

  • sound
    The sound identifier.
  • Duration
    The duration of the fade in effect.
  • VolumeLevel
    The volume for the sound to fade to.
  • StartTime (optional)
    The duration after which you need the effect to take place.

Return Value

  • Returns true on success, false on error.

Example

SetSoundFadeIn(soundId, 1000, 0, 2000)

See also