I need an event for GUI or JASS that detects when a unit comes within range of any unit of a particular type (or any unit in a unit group).
I need something like:
Event - A unit comes within 100 of *a barracks*
Conditions - Trigger unit is equal to footman
Actions
....
The other option would be if a unit comes within 100 of any unit within a "barracks" unit group, which contains all the barracks on the map. Or, I could maybe detect when a unit gets a "barracks aura" and then I know its close to a barracks.
Any thoughts?
I need something like:
Event - A unit comes within 100 of *a barracks*
Conditions - Trigger unit is equal to footman
Actions
....
The other option would be if a unit comes within 100 of any unit within a "barracks" unit group, which contains all the barracks on the map. Or, I could maybe detect when a unit gets a "barracks aura" and then I know its close to a barracks.
Any thoughts?