Scripting/Client/Functions/sound.SetVolume

Volume percentage (read and write).

Syntax

sound.SetVolume(0-100)
sound.Volume

Arguments

Example

function onScriptLoad()
{
	// sound is a sound handle (see Sound)
	sound.SetVolume( 0 );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Sound

Categories: Client functions | Sound