• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Detect current Attack Speed

Status
Not open for further replies.
Level 12
Joined
Mar 13, 2012
Messages
1,121
There is no easy way.
The best way depends on your map. You could check for all abilities and buffs on a unit that give attackspeed and then calculate it with their values, for example saved in a hashtable.
 
Level 12
Joined
Oct 16, 2010
Messages
680
I don't think its possible... you have to save every units : Base attack time (BAT)

by manually assigning them to variables is the only way to work with them
and for further attack speed calculations you have to register EVERY IAS(increase attack speed) effect the unit has:/

like if he equips a gloves of haste (it gives 30 IAS) register the amount

that would be hell of a lot work I think and really complicated as a map could use hundrends of different types of units:D
 
Status
Not open for further replies.
Top