1:I was use a replace unit in a zombie maps to change weapons, use a skill speed,make bleend when zombie attack it, but when i'm change a weapons, all buff, cooldown time white i'm use speed are remove, i'm don't like this bug, please how to make a better replace.
Event:
A unit is equip a items.
Coditions:
Item eqiup - ak 47
Action
Replace the old unit to owner of hero of equip items.
Codition
owner of equip items equal to ak-47
action
vararible:RedHero=last replace unit.
2:how to make sound distance weapons to less loud weapons when far units.
like this jass, can i accept this code in a custom script.
Event:
A unit is equip a items.
Coditions:
Item eqiup - ak 47
Action
Replace the old unit to owner of hero of equip items.
Codition
owner of equip items equal to ak-47
action
vararible:RedHero=last replace unit.
2:how to make sound distance weapons to less loud weapons when far units.
like this jass, can i accept this code in a custom script.
Code:
call SetSoundDuration(udg_sound15,810)
call SetSoundChannel(udg_sound15,5)
call SetSoundVolume(udg_sound15,'x')
call SetSoundPitch(udg_sound15,.9)
call SetSoundDistances(udg_sound15,900.,10000.)
call SetSoundDistanceCutoff(udg_sound15,3000.)
call SetSoundConeAngles(udg_sound15,.0,.0,127)
call SetSoundConeOrientation(udg_sound15,.0,.0,.0)