I have a trigger correctly spawning units at the right times, however it seems to only order 1 unit from each of the 3 regions I have spawning. I created a separate triggers to control how many and what type of unit will spawn. I'm not really sure how I can get it to work for all of the units though. Does anybody know? :(
Here is a quick example of what it looks like:
Local Variables
ZergGroup = (Empty unit group) <Unit Group>
SpawnLocation = (Center of Zerg Spawn 1) <Point> Actions
Point - Move SpawnLocation to (Center of Zerg Spawn 1)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Point - Move SpawnLocation to (Center of Zerg Spawn 2)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Point - Move SpawnLocation to (Center of Zerg Spawn 3)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Unit - Order all units in ZergGroup to ( Attack targeting Attack Point) (After Existing Orders)
Also, I was able to get the same thing accomplished by ordering all idle units for player to attack a point as well. But, that wont really work if you have other units on the field. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a trigger correctly spawning units at the right times, however it seems to only order 1 unit from each of the 3 regions I have spawning. I created a separate triggers to control how many and what type of unit will spawn. I'm not really sure how I can get it to work for all of the units though. Does anybody know? :(
Here is a quick example of what it looks like:
Local Variables
ZergGroup = (Empty unit group) <Unit Group>
SpawnLocation = (Center of Zerg Spawn 1) <Point>
Actions
Point - Move SpawnLocation to (Center of Zerg Spawn 1)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Point - Move SpawnLocation to (Center of Zerg Spawn 2)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Point - Move SpawnLocation to (Center of Zerg Spawn 3)
Unit - Create Number Type for player 3 at SpawnLocation using default facing(No Options)
Unit Group - Add(Last created unit) to ZergGroup
Unit - Order all units in ZergGroup to ( Attack targeting Attack Point) (After Existing Orders)
Use (Last created units) not (Last created unit).
@Sephiex: Go
Thank you for the response! But, I was unable to find it in functions for some reason. Only Unit is there. :(
It's going to be under unit group. So the action would be "Add unit group to unit group."
@Sephiex: Go
That did it, tyvm!
Also, I was able to get the same thing accomplished by ordering all idle units for player to attack a point as well. But, that wont really work if you have other units on the field. :)