Garry's Mod Wiki

Garry's Mod Wiki

  sound.AddSoundOverrides( string filepath )

Description

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

Arguments

1 string filepath
Path to the script file to load.

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)

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...