• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗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