MasterOfRa
New Member
- Reaction score
- 10
Im trying to use a repeating sound, based off of music already in warcraft, but at a different pitch, as music, i made the variable, and tried to make a scope that does that. However, it doesnt work.
It seems to stop during the pooled wait, but i have to use a wait of some kind there or it will not play the sound i think
It seems to stop during the pooled wait, but i have to use a wait of some kind there or it will not play the sound i think
JASS:
scope music initializer Actions
private function Actions takes nothing returns nothing
call BJDebugMsg("sound should be playing")
call PolledWait( 0.50 )
call BJDebugMsg("sound should be playing")
call EndThematicMusic( )
call BJDebugMsg("sound should be playing")
loop
call PlaySoundBJ( gg_snd_War2IntroMusic )
call TriggerWaitForSound( gg_snd_War2IntroMusic, 0 )
endloop
endfunction
endscope