Garry's Mod Wiki

IGModAudioChannel:Set3DEnabled

  IGModAudioChannel:Set3DEnabled( boolean enable )

Description

Sets the 3D mode of the channel. This will affect IGModAudioChannel:Get3DEnabled but not IGModAudioChannel:Is3D.

This feature requires the channel to be initially created in 3D mode, i.e. IGModAudioChannel:Is3D should return true or this function will do nothing.

Arguments

1 boolean enable
true to enable, false to disable 3D.