SetSoundFadeIn

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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