For that, you'll probably want to put a 3d point down at the center of each region (or up if you only care about that one), then use the Angle Between Points condition. See this sample trigger:
Untitled Trigger 001
Events
Unit - Any Unit Enters a distance of 10.0 from Xel'Naga Tower [72.00, 77.00]
Local Variables
Conditions
(Angle from (Position of (Triggering unit)) to Point 001) <= 45.0 This is the Angle Between Points condition
Actions insert actions here
You want the Facing Angle of Unit element for part of a condition on whatever event you're using (like Unit Enters/Leaves Region). As to the exact comparisons you'll need, i'm not sure what they are but if you mess around you should be able to figure it out.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
For that, you'll probably want to put a 3d point down at the center of each region (or up if you only care about that one), then use the Angle Between Points condition. See this sample trigger:
Untitled Trigger 001
Events
Unit - Any Unit Enters a distance of 10.0 from Xel'Naga Tower [72.00, 77.00]
Local Variables
Conditions
(Angle from (Position of (Triggering unit)) to Point 001) <= 45.0 This is the Angle Between Points condition
Actions
insert actions here
You want the Facing Angle of Unit element for part of a condition on whatever event you're using (like Unit Enters/Leaves Region). As to the exact comparisons you'll need, i'm not sure what they are but if you mess around you should be able to figure it out.