sound_fade(index,value,time)
Jump to navigation
Jump to 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);