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

Basic attack cooldown

Is there a way to restart attack cooldown?
If I do a stun for 0.5 sec it does not affect attack cooldown so my stun does not help much as enemy is on his attack cd anyways.

BlzStartUnitAbilityCooldown
can I use it with basic attack? )

BlzSetUnitAttackCooldown
It will not change current cd as far as I understand. If cd is already over
 
Last edited:

Remixer

Map Reviewer
Level 33
Joined
Feb 19, 2011
Messages
2,112
BlzStartUnitAbilityCooldown
It doesn't seem to work with basic attack.
BlzSetUnitAttackCooldown
It seems a little glitchy. One approach I've used is giving the unit a high attack speed bonus until its next account, which makes the next attack land super fast.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
I had an interesting thought and tested it but didn't learn anything useful for what you want to achieve. What I learned: if you reverse bear-morph into another unit type with a much higher attack speed you still can't attack until the full cooldown from your original attack speed has played out. Presumably all other morph abilities work this way but maybe not?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,875
I've added a cargo hold for the duration of cd, but unit starts to run away...
Does Cargo Hold even work here? I know it acts as a Disarm but how does it apply to your problem?

Anyway, the "Can Flee" option is what makes units run away when they can't fight back. Set it to False in the Object Editor or you can try toggling it via triggers (may or may not work).
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Thx Uncle. Now it does not flee.
But it seems because it does not have attack now. It gets deprioritized by combat AI. The original attacker does not continue to attack the same unit if other targets are available.
Do you get the same AI behavior if the unit has an attack in the OE but then you also give it Cargo Hold to disable that attack?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,875
Thats what i do. I have an orc grunt. I just give him a borrow cargo hold and unit attacking that grunt swithces to other targets. At least this is what i think.
Instead of Cargo Hold, try using a Dummy unit which casts a custom Soul Burn on your "Disarmed" unit. Change Soul Burn to prevent Attacks and get rid of it's damage and other unwanted settings.
 
Top