Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
GetUnitCooldown() ?
GetUnitCooldown() ?
04-23-2006, 02:00 PM
#1
Thunder_Eye
Is there any way to know what attackspeed a unit has? (like 1.35)
04-23-2006, 02:27 PM
#2
vile
Nope, just make a function and pre set it to all your units.
04-23-2006, 08:54 PM
#3
Immoralis
is there a way to make it do an ingame test? that might be inefficient tho, but you can make it attack something and time it to the next attack
04-23-2006, 09:04 PM
#4
TaintedReality
Or maybe you could just check every time it attacks to when it deals damage. Then you could store that value to the hero so you can get it later.
04-23-2006, 09:09 PM
#5
shadow1500
Not sure, but dont all heroes have the same attack speed? If so, then u can use agility+item bonuses to determinate attack speed.
04-23-2006, 09:44 PM
#6
TaintedReality
They don't unless you purposefuly make it that way. Paladin has 2.2, Archmage has 2.13, MK has 2.22, Blood Mage has 2.13, etc. I guess they are all pretty close to 2.2 though.. oO