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.
Comments
You have an option to check animation
https://github.com/IdcNoob/Ensage/blob/master/Evader/UsableAbilities/Items/ArmletOfMordiggian.cs#L297-L312
Or int32 network activity
https://github.com/EnsageSharp/Ensage.SDK/blob/master/Orbwalker/Orbwalker.cs#L283-L310
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.