| 08-17-2006, 06:47 AM | #1 |
This code isn't limiting the sound to a certain area. I can hear it all over the map. JASS:local location tempLoc = GetRandomLocInRect(gg_rct_Recipe) call SetSoundPosition(gg_snd_LightningBolt1,GetLocationX(tempLoc),GetLocationY(tempLoc),0) call StartSound(gg_snd_LightningBolt1) Code:
Variable: LightningBolt1 3D sound: "checked" Stop when out of range: "checked" Looping: "not checked" Volume: 127 Fade in Rate: 10 Fade Out Rate: 10 Pitch: 1.00 Min Distance: 0 Max Distance: 3000 Distance Cutoff: 3000 Effect: Default Channel: General |
| 08-17-2006, 04:01 PM | #2 |
3000 is an absolutely HUGE radius, even for a 3D sound. Unless your map is extremely large, I would expect you to be able to hear it over most of the map. |
| 08-17-2006, 04:20 PM | #3 |
Maybe I'm mistaken on how the radius is figured. I thought it was directly related to the map coordinates. Are there any links to show how to figure it? |
