How do you make a hero unit only "attack swing" once, when you press spacebar, instead of autoattack like normal?
I'm not even sure if it is possible to get the hero's current attack speed (including all item attack speed behavior bonuses) (weapon cooldown and weapon speed multiplier in the trigger editor don't return the attack speed that you see by hovering over the weapon icon)
for example, my hero has an attack speed of 2.3 with -0.35 speed bonus from item, but the debug message convert real to text of the units' weapon cooldown displayed 45, and the debug message convert real to text of the unit's weapon speed multiplier displayed 1
Is that possible, and if so, whats the best way to do so?
So I kinda figured out everything except for:
Anyone know how to get a unit's attack speed in game and return it as a real variable?
I'd be interested in seeing how you made this ability work as I also want to make a game with the same mechanic...
i just did a trigger that deals damage
probably not the best way to do it, but it worked
when a player presses "G" for example, then the trigger moves a region directly in front of that players hero, and deals damage to any picked unit in that region with the hero's damage effect
and animation, sound effect, and visual impact/launch models are created at that time
You must login to post a comment. Don't have an account? Register to get one!