[Dumb Question] Multiple Sounds in a "sound.Add" Lua Soundscript?
2 replies, posted
On [URL="https://wiki.garrysmod.com/page/Structures/SoundData"]the Gmod wiki[/URL], it says that the string of "sound" is able to be a table of sound files, although there is no reference for this on the wiki. Would I use something like this?
[code]
sound.Add( {
channel = CHAN_WEAPON,
level = 0.27,
volume = 0.9,
pitch = "95, 105",
sound = "weapons/gun/fire1.wav", "weapons/gun/fire2.wav", "weapons/gun/fire3.wav",
name = "Weapon_gun.Single",
[/code]
Or something like this?
[code]
sound.Add( {
channel = CHAN_WEAPON,
level = 0.27,
volume = 0.9,
pitch = "95, 105",
sound = "weapons/gun/fire1.wav",
sound = "weapons/gun/fire2.wav",
sound = "weapons/gun/fire3.wav",
name = "Weapon_gun.Single",
[/code]
Thanks for clarification. :pudge:
EDIT:
Yes, I know that these scripts go in the autorun folder.