sound.AddSoundOverrides

From Garry's Mod
Jump to: navigation, search
 sound.AddSoundOverrides( )

Contents

Description

Overrides sounds defined inside of a txt file; typically used for adding map-specific sounds.

Arguments

string filepath

Path to the script file to load.

Examples

Example

Adds and overrides all sounds defined in scripts/override_test.txt

sound.AddSoundOverrides("scripts/override_test.txt")

Output:

SoundEmitter: adding map sound overrides from scripts/override_test.txt [1 total, 1 replacements, 0 duplicated replacements] (Displayed in the console)
Personal tools
Navigation