Garry's Mod Wiki

IGModAudioChannel:Set3DCone

  IGModAudioChannel:Set3DCone( number innerAngle, number outerAngle, number outerVolume )

Description

Sets 3D cone of the sound channel.

Arguments

1 number innerAngle
The angle of the inside projection cone in degrees.

Range is from 0 (no cone) to 360 (sphere), -1 = leave current.

2 number outerAngle
The angle of the outside projection cone in degrees.

Range is from 0 (no cone) to 360 (sphere), -1 = leave current.

3 number outerVolume
The delta-volume outside the outer projection cone.

Range is from 0 (silent) to 1 (same as inside the cone), less than 0 = leave current.

Example

The default values

Channel:Set3DCone( 360, 360, 0 )