Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello!
I'm looking for a simple way to check if unit A is facing (looking at) unit B. Facing meaning that unit B is maximum of +/- 45 degrees in front of unit A. I saw this:
Here: http://www.hiveworkshop.com/forums/triggers-scripts-269/picking-all-units-front-another-unit-195945/
However, I do not fully understand that line, and also I don't know how to use "sector facing".
Thanks in advance!
I'm looking for a simple way to check if unit A is facing (looking at) unit B. Facing meaning that unit B is maximum of +/- 45 degrees in front of unit A. I saw this:
Trigger:
- (Cos((Sector facing - (Angle from Loc1 to Loc2)))) Greater than or equal to 0.766
Here: http://www.hiveworkshop.com/forums/triggers-scripts-269/picking-all-units-front-another-unit-195945/
However, I do not fully understand that line, and also I don't know how to use "sector facing".
Thanks in advance!