What i need to do:
An effect spawns a group of units and makes their owner player 15, or Enemy (cuz i can't specify a player in the effect itself, u know). Then i need these units to unite into a wave and go somewhere.
The problem:
I have no idea how to give orderes to these units cuz i see no function that returns units spawned by an effect.
There is a field called "Spawn Effect" or something like that in the Create Unit effect, put a dummy effect in there, have a trigger use that effect as an event and then just order (Triggering Effect Unit (Target)) to do whatever you want. If you need them to be in an actual unit group variable, just add them into that variable and run another trigger 0.0 seconds afterwards that does whatever you need to the unit group variable.
What i need to do:
An effect spawns a group of units and makes their owner player 15, or Enemy (cuz i can't specify a player in the effect itself, u know). Then i need these units to unite into a wave and go somewhere.
The problem:
I have no idea how to give orderes to these units cuz i see no function that returns units spawned by an effect.
"Select units in region" with regoin = "circle around the point where the effect happened" could return those units.
@Zolden:
But in this region i also have other units...
@FunBotan: Go
There is a field called "Spawn Effect" or something like that in the Create Unit effect, put a dummy effect in there, have a trigger use that effect as an event and then just order (Triggering Effect Unit (Target)) to do whatever you want. If you need them to be in an actual unit group variable, just add them into that variable and run another trigger 0.0 seconds afterwards that does whatever you need to the unit group variable.
@TheAlmaity:
0.o
So complicated...
But will try, thanks.