• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Help with imported music

Status
Not open for further replies.
Level 1
Joined
Jun 7, 2011
Messages
1
so I took an existing map, found a mp3 less than 4mb's... imported the mp3 file to the Sound Editor, added a trigger to run from the Melee Initialization trigger, added an action (sound - setplaylist), then coverted to custom text, added in the imported mp3 path, and it works just fine, but it ONLY plays once.... that seems lame to me. do I need a timer? a loop? or is there an easy variable to set loop to true?


JASS:
[code=jass]function Trig_Setup_Music_Actions takes nothing returns nothing
  call SetMapMusicRandomBJ( "war3mapImported\\VGS.mp3" )
endfunction

//===========================================================================
function InitTrig_Setup_Music takes nothing returns nothing
    set gg_trg_Setup_Music = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Setup_Music, function Trig_Setup_Music_Actions )
endfunction
[/code]
 
Status
Not open for further replies.
Top