sound_fade(index,value,time)

From ENIGMA

Jump to: navigation, search

Description

Sets a new volume level for the indicated sound which will be faded to over the given amount of time.

Parameters

Parameter Data Type Description
index integer index of the sound to fade
value float the volume to fade to
time integer duration of the fade, in milliseconds

Return Values

void: This function does not return anything.

Example Call

// demonstrates fading a sound to half volume in one second
sound_fade(snd_shoot, 0.5, 1000);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox