• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Aura, Delay on buff

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
Hey, as you know aura abilities have a small delay before disappearing.
ex. If your unit walks out of range from Paladin's devotion aura, it will take a second or 2 before the effects to go off. Can you make this instant instead?

Thank you
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
You can however, remove the buff instantly by using this function;
  • Custom script: call UnitRemoveAbility(unit, BuffId)
For example if buff ID for Devotion Aura is AHad, replace the BuffId with AHad instead.

But to make the unit to have the aura without delay, you can't simply use UnitAddAbility.

But first, you must have a trigger function that detects unit that leaves the aura aoe from the caster first.
I would suggest you should use my Temporary Ability system where you add the ability via Spell Book (disable it) and have the ability "act" as an aura, but actually it's an ability inside a disabled Spell Book.
 
You can however, remove the buff instantly by using this function;
  • Custom script: call UnitRemoveAbility(unit, BuffId)
For example if buff ID for Devotion Aura is AHad, replace the BuffId with AHad instead.

But to make the unit to have the aura without delay, you can't simply use UnitAddAbility.

But first, you must have a trigger function that detects unit that leaves the aura aoe from the caster first.
I would suggest you should use my Temporary Ability system where you add the ability via Spell Book (disable it) and have the ability "act" as an aura, but actually it's an ability inside a disabled Spell Book.

just a note: replace BuffId w 'AHad'
you have to use the apostrophes

Can't you just set the aura's duration to 0.01?

thts a good question i never noticed that b4 lol
 
Level 7
Joined
Jan 22, 2013
Messages
293
Hey, as you know aura abilities have a small delay before disappearing.
ex. If your unit walks out of range from Paladin's devotion aura, it will take a second or 2 before the effects to go off. Can you make this instant instead?

Thank you


Just use a trigger to remove buff from the unit, you have to store the units so you know what ones to remove it from though.
 
Status
Not open for further replies.
Top