sound/AddSoundOverrides

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
Line 8: Line 8:
 
{{Example
 
{{Example
 
|Description=Adds and overrides all sounds defined in scripts/override_test.txt
 
|Description=Adds and overrides all sounds defined in scripts/override_test.txt
|Code=sound.AddSoundOverrides("scripts/override_test.txt"))
+
|Code=sound.AddSoundOverrides("scripts/override_test.txt")
 
|Output=SoundEmitter:  adding map sound overrides from scripts/override_test.txt [1 total, 1 replacements, 0 duplicated replacements]
 
|Output=SoundEmitter:  adding map sound overrides from scripts/override_test.txt [1 total, 1 replacements, 0 duplicated replacements]
  
 
(Displayed in the console)
 
(Displayed in the console)
 
}}
 
}}

Revision as of 21:46, 2 August 2013

 sound.AddSoundOverrides( )

Description

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

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