SlashCo Wiki

SlashCo.AudioSystem.ToSound

 string SlashCo.AudioSystem.ToSound( string soundFile )

Description

Adds sound/ to the start of the sound if it doesn't already have this.
This is needed as else a sound may not be found since paths are relative to the garrysmod/ folder, NOT relative to the sound/ folder.

Arguments

1string soundFile

Input soundFile which may be missing sound/

Returns

1string soundFile

Output soundFile which will always start with sound/