JASS:
function PlayMusicExt takes string Normal, string External returns nothing
local integer i=0
local string s=""
loop
exitwhen i>11
if GetLocalPlayer()== Player(i) then
if GetSoundFileDuration(External) > 0 then
set s=External
else
set s=Normal
endif
endif
set i=i+1
endloop
call StopMusic(false)
call PlayMusic(s)
endfunction
Last edited: