HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

aura effeckt delay

05-05-2008, 09:53 PM#1
unwirklich
i need to have the effect of an (prefered of just one specific) aura on a unit end immediately when the unit moves out of the range.
i played around with the game constants and the common abilitie options, but it didnt help.

for example: if there is a paladin with devotion aura, it takes 5 seconds until a unit lose the armor bonus. if the caster is a building, its possible to step in range of the aura, receive the bonus, step out of the range and have still five seconds free fighting with +armor.
this shouldn't be possible, so i need to have it end directly. does someone know where i have to change something? or am i forced to trigger the whole thing(which i dont want to...)?
05-05-2008, 09:55 PM#2
Rising_Dusk
The aura duration is a constant built into WC3. You'll have to have a timer running upon which you group all units with the aura buff and then do a distance check between that unit and the closest with the aura ability. If the distance is lower or equal to the aura's range, don't remove the buff, otherwise manually remove it.

That should manage what you want perfectly.
05-05-2008, 10:15 PM#3
unwirklich
hrm ok. thx.
maybe then in my case its easier to manage the whole thing with rects.
05-06-2008, 12:03 AM#4
rulerofiron99
Doesn't it help to set the duration of the aura to 0.01 second? Not sure if this works, give it a try, it won't even take a minute.
05-06-2008, 12:19 AM#5
Rising_Dusk
It doesn't, unfortunately.