| 08-23-2007, 04:32 PM | #1 |
thats my code to play sounds, it works fine for wav's and the sounds can overlap if this is used on wavs, but on mp3's they do not overlap. is there anyway around this besides converting the sonunds into wav's? JASS:function UnitSound takes unit u, string id, real pitch, integer volume, real d returns nothing local sound snd=CreateSound(id,false,true,false,10,10,"") call SetSoundPitch(snd,pitch) call SetSoundVolume(snd,volume) call SetSoundDistances(snd,600,d) call AttachSoundToUnit(snd,u) call StartSound(snd) call KillSoundWhenDone(snd) set snd=null endfunction |
