I have made an ability that creates 10 units. Those 10 units are spawned at the caster and are given an issue order that make them attack-move to the target position of the ability. They kinda work like Banelings, in the sense that they blow themselves up when they attack and chase any enemy units that comes in their path.
Here is the problem - my 10 units are moving towards their targeted point. One enemy unit comes in the way. All 10 units start to chase it to attack it.
Would it be possible to make only 1 unit chase 1 enemy unit? Any ideas how to make that work?
This means that all my 10 units would attack 10 different enemy units, instead of all 10 attacking the same unit.
Maybe instead of them doing an "attack", you could make them do a targeted ability with autocast. The autocast could have a validator which checks for a behavior on the target unit. Your attack ability could give the target unit that behavior as well as make the unit suicide towards them.
I have made an ability that creates 10 units. Those 10 units are spawned at the caster and are given an issue order that make them attack-move to the target position of the ability. They kinda work like Banelings, in the sense that they blow themselves up when they attack and chase any enemy units that comes in their path.
Here is the problem - my 10 units are moving towards their targeted point. One enemy unit comes in the way. All 10 units start to chase it to attack it.
Would it be possible to make only 1 unit chase 1 enemy unit? Any ideas how to make that work?
This means that all my 10 units would attack 10 different enemy units, instead of all 10 attacking the same unit.
Maybe instead of them doing an "attack", you could make them do a targeted ability with autocast. The autocast could have a validator which checks for a behavior on the target unit. Your attack ability could give the target unit that behavior as well as make the unit suicide towards them.
Thanks!
I built an ability of it instead and I managed to get it to work now!