- Joined
- Feb 11, 2008
- Messages
- 809
I made this trigger to detect the units needed to go along with the rest of my code and it works but it looks really ugly is there any way to optimize it?
-
SetUp Units
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set Temp_Point[1] = (Position of SystemUnit[1])
-
Set Temp_Point[2] = (Position of SystemUnit[2])
-
Set AttackingUnitGroup[1] = (Units within DistanceToAttack[1] of Temp_Point[1])
-
Set AttackingUnitGroup[2] = (Units within DistanceToAttack[2] of Temp_Point[2])
-
Custom script: call RemoveLocation(udg_Temp_Point[1])
-
Custom script: call RemoveLocation(udg_Temp_Point[2])
-
-