| 05-29-2006, 06:09 PM | #1 |
No sound is played, why? i did a test thing and it pinged the position of "u" and the sound works in the sound editor JASS:call UnitSound(u,"war3mapImported\\CS_Roger.wav",GetRandomReal(0.9,1.1),GetRandomInt(115,130),2500) 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 |
| 05-29-2006, 06:11 PM | #2 |
Does the sound have to be imported as a 3D sound? |
| 05-31-2006, 12:25 AM | #3 |
that does not matter |
| 05-31-2006, 02:20 AM | #4 |
it does actually Follow this path Modules - Sound editor Pick a sound that you want to use and right click\ The click - Use as sound Right click on the sound you picked and pick edit sound variable Click the 3D sound box to take the 3d sound off Now you can hear the sound anywhere |
