SetSoundFadeIn

From Onset Developer Wiki
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