- Joined
- Oct 20, 2010
- Messages
- 228
First off, I do GUI, so I'm a bit limited. I've recently discovered Bribe's Unit Indexer and have been running it through the code on my map to make everything smoother and more easily MUI. Blah blah, but this isn't my question.
I am using a trigger-based Attack Speed system instead of using Attack Speed abilities on Items. Mainly because attack speed increases animation speed and other factors, while my mini system allows me to edit attack speed cooldowns directly with items/abilities. The problem is I'm not sure how to apply to overcome this problem.
Originally, attack speed items and abilities only worked on the two players' heroes. But now, using Bribe's indexer, I can theoretically make this work for all units (as I have already done for critical strike chance, on-hit, etc) except my code for Attack Speed specifically needs to know the units Base (unedited) Attack Cooldown.
Is there a way I can call upon a Unit Types Real Field rather than a Units? Or is there a way to save all unit types base attack speed at the initialization phase?
I am using a trigger-based Attack Speed system instead of using Attack Speed abilities on Items. Mainly because attack speed increases animation speed and other factors, while my mini system allows me to edit attack speed cooldowns directly with items/abilities. The problem is I'm not sure how to apply to overcome this problem.
Originally, attack speed items and abilities only worked on the two players' heroes. But now, using Bribe's indexer, I can theoretically make this work for all units (as I have already done for critical strike chance, on-hit, etc) except my code for Attack Speed specifically needs to know the units Base (unedited) Attack Cooldown.
Is there a way I can call upon a Unit Types Real Field rather than a Units? Or is there a way to save all unit types base attack speed at the initialization phase?