FadeSound (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Fades the sound on this entity to a new level over a period of time.

Usage

void fadeSound( float channel , float newLevel , float fadeTime )

Parameters

  • [channel] - The channel to fade.
  • [newLevel] - The level to fade to.
  • [fadeTime] - The duration of the fade.

Examples

 
$my_entity.fadeSound(SND_CHANNEL_ANY, 0, 10);

Notes

This script event does not return any values.

Use SND_CHANNEL_ANY for all currently playing sounds.