- Joined
- Oct 18, 2007
- Messages
- 930
How do i create Sound??
Ok im trying to make a PP-MUI spell that uses a 3D sound, but dunno how to make it
Ok lets say that i have a sound file that is called "anysound.wav".
and i got theese calls/functions/commands to make a 3D sound. How should i do it??
Ok im trying to make a PP-MUI spell that uses a 3D sound, but dunno how to make it
Ok lets say that i have a sound file that is called "anysound.wav".
and i got theese calls/functions/commands to make a 3D sound. How should i do it??
JASS:
local sound snd = CreateSound(string filename,false, true, true, integer fadeInRate, integer fadeOutRate, string eaxSetting) //what should i put in the "fadeInRate", "fadeOutRate" and the "string eaxSetting"
call SetSoundChannel( snd, integer channel) //Dunno the "Channel Codes"
call SetSoundDistances( snd, 600.00, 10000.00 ) //What are the best values here?
call SetSoundDistanceCutoff( snd, 3000.00) //What is the best value to put here?
call SetSoundDuration( snd, GetSoundFileDuration(string musicFileName) ) //fileName here again :)
call SetSoundVolume( snd, 100 )
// "SetSoundConeAngles(sound soundHandle, real inside, real outside, integer outsideVolume)" What does this??
//is there something more that i need just say it :) thx!
call TriggerSleepAction( 2.00 )
PlaySoundOnUnitBJ( snd, 100.00, GetTriggerUnit() )
set snd = null
Last edited: