HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Sounds

01-21-2008, 11:57 PM#1
Joker
Can someone explain all the things that this natives taking? and is it something that you should null?
Collapse JASS:
native CreateSound                  takes string fileName, boolean looping, boolean is3D, boolean stopwhenoutofrange, integer fadeInRate, integer fadeOutRate, string eaxSetting returns sound
01-22-2008, 06:18 PM#2
Silvenon
It is not just something you should null, it is something you should destroy also.
  • fileName - string path to the sound you wanna play
  • looping - is it looping :)
  • is3D - is it 3D (meaning that it gets quieter the more you go away from the sound point)
  • stopwhenoutofrange - every sound has a certain range (this only works if it's 3D, probably) in which it can be heared, this would probably stop the sound when you get out of that range (if you put true)
  • fadeInRate - the speed of the fade in of the sound
  • fadeOutRate - the speed of the fade out of the sound
  • eaxSetting - I don't know what this one is, honestly :)
I hope I didn't say something wrong and I hope I helped a bit.
01-22-2008, 06:46 PM#3
Troll-Brain
use a sound with gui and open the war3map.j of the map.
You will see how to use this function.
01-23-2008, 01:54 PM#4
Silvenon
......or just convert that GUI code to JASS, see and convert it back........
01-23-2008, 02:32 PM#5
Troll-Brain
Quote:
Originally Posted by Silvenon
......or just convert that GUI code to JASS, see and convert it back........
No, you need to open the script because if you simply convert the gui action you won't see how the sound is created (when you use the sound editor)
01-24-2008, 07:07 PM#7
Silvenon
Oooooooh......you mean the sound editor. Ok then.

I think Joker isn't coming back.... :(
01-24-2008, 07:12 PM#8
Troll-Brain
Quote:
Originally Posted by Silvenon
Oooooooh......you mean the sound editor. Ok then.

I think Joker isn't coming back.... :(

Yes exactly, it's at least one of thing that you can't guess yourself if you don't use gui as an example.

Hmm why, is he dead ? (black and bad joke)
01-24-2008, 08:44 PM#9
Jitse
Zombies came to eat his brain... You're next, Troll-Brain (they can't resist your name, everyone knows troll brains are tiny but juicy).
01-25-2008, 04:28 PM#10
Silvenon
We should probably stop spamming now......