- Joined
- Feb 1, 2009
- Messages
- 107
Is it possible to detect the current attack cooldown of an unit using triggers? There are some unit properties that can be found in the trigger editor, such as life, mana, and even movement speed, but I can't find attack cooldown.
I want to detect this because I want to do a trigger that makes my unit damage the other unit when it is issued the attack order. But then the damage will apply before the hitting animation, so it gets kinda ugly. If I could detect the attack cooldown, I could make something like "Set AtkCdwn = Current Attack Cooldown of Unit", and then do "Wait (AtkCdwn) seconds" before my trigger applies the damage, and it would look like the damage was applied exactly when the hitting animation finished.
I want to detect this because I want to do a trigger that makes my unit damage the other unit when it is issued the attack order. But then the damage will apply before the hitting animation, so it gets kinda ugly. If I could detect the attack cooldown, I could make something like "Set AtkCdwn = Current Attack Cooldown of Unit", and then do "Wait (AtkCdwn) seconds" before my trigger applies the damage, and it would look like the damage was applied exactly when the hitting animation finished.