• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Activate cooldown when building is finished

Status
Not open for further replies.
Level 10
Joined
Jun 6, 2007
Messages
392
I'm creating superweapons (like in c&c series), which are basically buildings, which have abilities with a long range and cooldown. What I want, is that when a building is finished, the cooldown is activated immediately. One solution would be to order unit to cast the ability, but it would have to be interrupted before the effect takes place. It might also be possible to simulate this with items and start stock delay, but in that case, there are visible numbers (charges). Is there any better solution?
 
Level 11
Joined
Jan 23, 2015
Messages
788
Make a dummy spell with the same icon but does nothing and has the cooldown you want. When the unit finishes with the effect of the ability remove the original and add the dummy spell, cast it and then start a timer for the cooldown, return the original ability once it expires.
 
Last edited:
Status
Not open for further replies.
Top