Cheddar
This is the way it was meant to be.
- Reaction score
- 126
Okay, here is the problem.
In a normal GUI triggered backstab spell, the obvious way to detect if a unit is behind another is by comparing facing angles -- for instance, if the difference between the two is between -30 and 30.
Attacker has facing angle of 50.
Attacked unit has a facing angle of 59.
Trigger goes off.
So, what's the problem? As AceHart kindly pointed out in one thread:
Attacker has a facing angle of 1.
Attacked unit has a facing angle of 359.
Trigger fails to activate, even though the two units are near-perfectly lined up.
I have used the Search button, never fear, yet I failed to find any threads returning my query and an answer to it. If you can pose a solution to this problem, I would greatly appreciate it. And +rep.
In a normal GUI triggered backstab spell, the obvious way to detect if a unit is behind another is by comparing facing angles -- for instance, if the difference between the two is between -30 and 30.
Attacker has facing angle of 50.
Attacked unit has a facing angle of 59.
Trigger goes off.
So, what's the problem? As AceHart kindly pointed out in one thread:
Attacker has a facing angle of 1.
Attacked unit has a facing angle of 359.
Trigger fails to activate, even though the two units are near-perfectly lined up.
I have used the Search button, never fear, yet I failed to find any threads returning my query and an answer to it. If you can pose a solution to this problem, I would greatly appreciate it. And +rep.