- Joined
- May 4, 2007
- Messages
- 2,260
Hi Guys i have a problem with my Musics.
To start i have the following trigger:
This trigger plays 3 musics. When song 1 ends, the trigger plays song 2 and when song 2 ends, it plays song 3.
This trigger works fine, however i don't know how to do the following:
<> In another trigger i have, i want to pause the current song, play another theme during 30 seconds, and them resume the song i paused.
Can this be done ? please help.
To start i have the following trigger:
JASS:
function Trig_Music_Actions takes nothing returns nothing
call PlayMusicBJ( gg_snd_PH1 )
call TriggerSleepAction( GetSoundFileDurationBJ(gg_snd_PH1) )
call PlayMusicBJ( gg_snd_War2IntroMusic )
call TriggerSleepAction( GetSoundFileDurationBJ(gg_snd_War2IntroMusic) )
call PlayMusicBJ( gg_snd_HumanX1 )
call TriggerSleepAction( GetSoundFileDurationBJ(gg_snd_HumanX1) )
endfunction
//===========================================================================
function InitTrig_Music takes nothing returns nothing
set gg_trg_Music = CreateTrigger( )
call TriggerAddAction( gg_trg_Music, function Trig_Music_Actions )
endfunction
This trigger plays 3 musics. When song 1 ends, the trigger plays song 2 and when song 2 ends, it plays song 3.
This trigger works fine, however i don't know how to do the following:
<> In another trigger i have, i want to pause the current song, play another theme during 30 seconds, and them resume the song i paused.
Can this be done ? please help.