• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

how to put something on cooldown without casting

Status
Not open for further replies.

Nasai

N

Nasai

how can i make a spell go on cooldown without the unit ever casting the spell?
 
I need that too (specially for passives, possible to make a cooldown but not visualy)

I think I have an idea
firstly make it active
Make a trigger like
if unit is ordered to use that ability
pause it - order it to stop - unpause

Whenever you want to start cooldown
Disable first trigger
order unit to use that spell
enable first trigger

Not so efficient
 
i think im just gonna make it remove the ability from the unit with triggers, fire a timer, and then give the ability back after the timer expires... really the only way
 
You could try making the unit cast some dummy ability with no effect that has the same Order Id as your spell. (Based from the same ability)
That might work.

This is what I would do.

If that doesn't do it, you could try removing the original ability, making a dummy ability with the same icon and tooltip, having the dummy ability fire, and then when the cooldown is over replace it with the real ability.
 
Status
Not open for further replies.
Back
Top