• 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.

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