Garry's Mod Wiki


IGModAudioChannel:SetPan( number pan )

Just Added

This was just added in the latest version (2020.03.20). It might only be available on the Dev Branch right now.


Sets the relative volume of the left and right channels.


1 number pan
Relative volume between the left and right channels. -1 means only in left channel, 0 is center and 1 is only in the right channel.


Plays the a Half-Life 1 sound track in the left channel

sound.PlayFile( "sound/music/hl1_song20.mp3", "", function( channel ) if ( IsValid( channel ) ) then channel:Play() channel:SetPan(-1) end end )

Page Links

Special Pages



Render Time: 32ms

DB GetPage 3
Generate Html 6
SaveChanges (1) 9
Render Body 0
Render Sidebar 11