Lore archive · Warcraft Wiki, 2023 dump
API PlaySound
Last wiki revision 2022-11-04
Plays the specified sound by SoundKitID. willPlay, soundHandle = PlaySound(soundKitID [, channel, forceNoDuplicates, runFinishCallback])
- soundKitID: - Sound Kit ID in SoundKitEntry.db2. Sounds used in FrameXML are defined in the SOUNDKIT table.
- channel: - The sound channel.
- forceNoDuplicates: - Allows duplicate sounds if false.
- runFinishCallback: - Fires when the sound has finished playing, arg1 will be.
- willPlay: - true if the sound will be played, nil otherwise (prevented by a muted sound channel, for instance).
- soundHandle: - identifier for the queued playback.
Plays the ready check sound file (sound/interface/levelup2.ogg) (567478) -- by FileDataID
- Sound Kit IDs are used to play a set of random sounds. For example the human female NPC greeting sound kit refers to 5 different sounds.
- - Accepts FileDataIDs and addon file paths.
Source
https://warcraft.wiki.gg/wiki/API_PlaySound · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.