Garry's Mod Wiki

SoundData

Description

Table used in sound.Add and sound.GetProperties.

Parameters

channel [number]

The sound channel to play in. See Enums/CHAN

name [string]

The name of the sound.

pitchend [number]

The pitch end. Deprecated, use pitch.

pitchstart [number]

The initial pitch. Deprecated, use pitch.

level [number]

The soundlevel of the sound in dB. See Enums/SNDLVL.

sound [string]

The sound file to be used in this sound effect. Can be a table of sound files. Relative to "sound" directory (must be in a subfolder, so sound/test.wav will not work).

volume [number]

The volume of the sound as a decimal between 0 and 1. Can be a table of two numbers, a minimum and a maximum value.

Warning: Volume of 0 will act as volume of 1

Default: 1.0

pitch [number]

The pitch of the sound. Can be a table of two numbers, a minimum and a maximum value.

Default: 100

Page Links


Special Pages


Wikis

?

Render Time: 39ms

DB GetPage 4
Generate Html 13
SaveChanges (1) 13
Render Body 0
Render Sidebar 6