PlayMusic
- Parameters
-
musicName string
The path to the music file.
- bug
This native may cause a short lag spike as soon as the music starts. To circumvent this lag, stop the current music without fadeout before calling this function (
call StopMusic(false)
).- comment
Sets the file as the current music for the map, and plays it.
- note
Music is on its own channel and can be toggled on and off within the Warcraft III game menu.
- note
Should work with mp3s, midis and wavs.
- note
If musicName is a semicolon-delimited list, the whole list of music is played.
- return type
nothing
- Source code
native PlayMusic takes string musicName returns nothing
- Source
- common.j
- wc3modding.com
- PlayMusic