audio.fade

fade(sound_name: string, from: number, to: number, duration: number, id: number) → {}

Fade a currently playing sound between two volumee.

Parameters:
Name Type Attributes Description
sound_name string

audio clip name - case sensitive

from number

Volume to fade from (0.0 to 1.0).

to number

Volume to fade to (0.0 to 1.0).

duration number

Time in milliseconds to fade.

id number

<optional>

the sound instance ID. If none is passed, all sounds in group will fade.

Returns:
Type Description
Powered by webdoc!