Is it possible to catch the event of the beginning of the attack unit? I mean, when one unit starts waving to make an attack on another unit.
You have an option to check animation
Or int32 network activity
Problem with animation is that some abilities will contain "attack" name in it or attack animation will not contain it. So it kinda requires a lot of testing for reliable info.
Problem with network activity is that in some specific situations like for viper with enabled Q auto cast it will not show that its attack activity.
Thanks, it helped.
However, there is a new problem. The source of the attack, I can pinpoint. And the target of the attack, I can not find. In the example with the armlet, the distance and the viewing angle of the attacker are calculated. However, if two units are in line, then I can not clearly determine who is attacking.
Its impossible to know for sure who is target, u can only guess it by distance and angle. But even when units are standing in line, one will have smaller angle most of the time.
It looks like you're new here. If you want to get involved, click one of these buttons!