View Single Post
01-17-24, 03:54 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
In all honesty, you don't need to wait for events to fire to use MuteSoundFile(). You can call it from the main chunk. Also, SoundKitIDs can map to multiple FileIDs in which a random one is picked at call. They're not interchangeable.
Lua Code:
  1. for _,fileid in ipairs({
  2.     640336, 640338, 640340,
  3.     640314, 640316, 640318, 640320,
  4.     640180, 640182, 640184,
  5.     640158, 640160, 640162, 640164
  6. }) do MuteSoundFile(fileid); end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote