![]() by SoundKitID 888 (SoundKitName LEVELUP) by FileDataID 569593 (added support in 8.2.0) PlaySoundFile("Sound/Spells/LevelUp.ogg") PlaySoundFile("Interface\\AddOns\\MyAddOn\\mysound.ogg", "Master") Both slash / or escaped backslashes \\ can be used as file separators.Plays a sound file included with your addon and ignores any sound setting except the master volume slider: soundHandle number - identifier for the queued playback. Sound channels Returns willPlay boolean - true if the sound will be played, nil otherwise (prevented by a muted sound channel, for instance). Individual channels (except "Master") have user-configurable volume settings and may be muted, preventing playback. The sound volume slider setting the sound should use, one of: "Master", "SFX" (Sound), "Music", "Ambience", "Dialog". Or soundFileID number - FileDataID of the sound. The file must exist prior to logging in to WoW. Must be a path to a soundfile in an addon.WillPlay, soundHandle = PlaySoundFile("soundFile" or soundFileID )Īrguments soundFile string - The path and name of the sound file you'd like to play, relative to the WoW directory
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |