Garry's Mod Wiki

Garry's Mod Wiki

  IGModAudioChannel:SetVolume( number volume )

Description

Sets the volume of a sound channel

Arguments

1 number volume
Volume to set. 1 meaning 100% volume, 0.5 is 50% and 3 is 300%, etc.

Example

Plays the a Half-Life 1 sound track at 300% volume

sound.PlayFile( "sound/music/hl1_song20.mp3", "", function( channel ) if ( IsValid( channel ) ) then channel:Play() channel:SetVolume( 3 ) end end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...