• 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.

Ability starts on cooldown?

Status
Not open for further replies.
Level 8
Joined
Dec 9, 2009
Messages
397
In my map I make a unit spawn when a hero dies so you can cast revive on that unit to respawn the hero at the place of death. On the unit I have an ability that when used respawns the hero in town instead.

I would like for the ability to start on cooldown so they can't respawn in town right away.

Of course I'm open to suggestions of other methods though I don't want a summoned unit timer on the unit.

I could make a trigger to add the ability after 30 seconds, but trying to do it without any waits.
 
Level 6
Joined
Apr 12, 2009
Messages
156
What you could do is make the unit cast the resurrection spell immediately after it is created, therefor triggering it's cooldown. This method would work best if the ability was similar to War Stomp, where a target unit or area would not be required to cast.
 
Level 8
Joined
Dec 9, 2009
Messages
397
Wouldn't an ability with the same order ID set off my trigger of reviving in town when the ability is used?

Though I did have an idea of changing the ability to a toggle, so the trigger activates when the ability is canceled but I don't see an event that would detect that.
 
Status
Not open for further replies.
Top