SetSoundFadeIn

From Onset Developer Wiki
Revision as of 19:32, 31 December 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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