Are there like sound limitations? I've tried playing the FaerieDragonSound every 0.075 second but it will not work. Only 3 instances are played at once.
It's blargh. Other sounds such as: [ljass]"Sound\\Units\\Combat\\MetalLightSliceMetal2.wav"[/ljass] will play without limits...
Here's the method I am using:
It's blargh. Other sounds such as: [ljass]"Sound\\Units\\Combat\\MetalLightSliceMetal2.wav"[/ljass] will play without limits...
Here's the method I am using:
JASS:
method createBladeSound takes nothing returns nothing
local integer r = GetRandomInt( 0, 2 )
local sound s = null
//if r == 0 then
set s = CreateSound( SOUND_ONE, false, true, true, 10, 10, "" )
//call SetSoundParamsFromLabel( s, "FaerieDragonLaunch")
/*elseif r == 1 then
set s = CreateSound( SOUND_TWO, false, true, true, 10, 10, "" )
call SetSoundParamsFromLabel( s, "FaerieDragonLaunch" )
call SetSoundDuration( s, SOUND_DUR_2 )
elseif r == 2 then
set s = CreateSound( SOUND_THREE, false, true, true, 10, 10, "" )
call SetSoundParamsFromLabel( s, "FaerieDragonLaunch")
call SetSoundDuration( s, SOUND_DUR_3 )
endif*/
call SetSoundVolume( s, PercentToInt( 100, 127 ) )
call SetSoundPosition( s, GetUnitX( this.caster ), GetUnitY( this.caster ), 100.00 )
call StartSound( s )
call KillSoundWhenDone( s )
set this.ticks = 0
set s = null
endmethod