- Joined
- Aug 19, 2008
- Messages
- 491
Hello again.
I've been trying to code something that if a unit gets in range of another unit, and that unit is an enemy, I want to do stuff to the enetering unit.
However there doesn't seem to exist a even response that returns the unit which the entering unit got close to.
This is for a MUI spell so it should be castable with 100 units at the same time, which is why I need the source unit.
Does anyone know how to work around this problem?
In gui it would look something like this, though I don't use gui for it.
I've been trying to code something that if a unit gets in range of another unit, and that unit is an enemy, I want to do stuff to the enetering unit.
However there doesn't seem to exist a even response that returns the unit which the entering unit got close to.
This is for a MUI spell so it should be castable with 100 units at the same time, which is why I need the source unit.
Does anyone know how to work around this problem?
In gui it would look something like this, though I don't use gui for it.
-
Dont Touch God
-
Events
-
Unit - A unit comes within 500.00 of God 0000 <gen>
-
-
Conditions
-
((Triggering unit) belongs to an enemy of (Owner of (Source Unit)) Equal to True
-
-
Actions
-
Unit - Kill (Triggering unit)
-
-