Originally Posted by Stonedpossum
Don't I want it to stop the music when you unmount?
And also, what's wrong with the where the music file is?
Because that's where it is...
|
Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_AURAS_CHANGED");
f:SetScript("OnEvent", function()
if IsMounted() then
PlayMusic("Interface\\AddOns\\OnTheRoad\\music.mp3")
else
StopMusic()
end
end)