- Joined
- Mar 3, 2006
- Messages
- 1,564
If two hostile units are in each others acquisition range they will automatically engage in combat, the problem is that there no command for this action.
An event like A unit Is Attacked fires only when the unit starts the action but there is no way to detect when the unit leaves its position to attack a unit because it has entered its acquisition range.
Is there a way to detect this event ?
The only solution I have found is by picking every unit in the map that can attack and check the nearest unit to the picked unit and see if one is in the acquisition range of the other or not but something like that may be slow but that is the only thing I can think of.
Any ideas/solutions ?
An event like A unit Is Attacked fires only when the unit starts the action but there is no way to detect when the unit leaves its position to attack a unit because it has entered its acquisition range.
Is there a way to detect this event ?
The only solution I have found is by picking every unit in the map that can attack and check the nearest unit to the picked unit and see if one is in the acquisition range of the other or not but something like that may be slow but that is the only thing I can think of.
Any ideas/solutions ?