I have a map where players send units into a structure's cargo, which causes that unit to get "trained" into another unit (unit compare cargo enables a train ability and kills the cargo when training completes). The structure has a cargo capacity of 1 (1 capacity is integral to design of the game).
So when a player sends say, 5, units in to go get "upgraded", 1 will enter the structure and the other 4 will stand outside facing the structure, kind of like when a player sends a bunch of SCVs to repair a bunker that is full of marines and has full hp.
What I want is once the first unit is trained into a new one, the 2nd will enter, then once he is done the 3rd, and so on. So I have a trigger that, once training completes, searches the area and orders any units nearby to enter the structure.
The problem is that this trigger is indiscriminate and will order any of that unit type to enter the structure, even if it is doing something else like gathering or fighting. What condition can I use for a Pick Each Unit action, that will only pick units that are standing around the structure waiting to enter? I noticed that the move command appears to be active on these units but restricting it to units that have move executing doesn't work.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a map where players send units into a structure's cargo, which causes that unit to get "trained" into another unit (unit compare cargo enables a train ability and kills the cargo when training completes). The structure has a cargo capacity of 1 (1 capacity is integral to design of the game).
So when a player sends say, 5, units in to go get "upgraded", 1 will enter the structure and the other 4 will stand outside facing the structure, kind of like when a player sends a bunch of SCVs to repair a bunker that is full of marines and has full hp.
What I want is once the first unit is trained into a new one, the 2nd will enter, then once he is done the 3rd, and so on. So I have a trigger that, once training completes, searches the area and orders any units nearby to enter the structure.
The problem is that this trigger is indiscriminate and will order any of that unit type to enter the structure, even if it is doing something else like gathering or fighting. What condition can I use for a Pick Each Unit action, that will only pick units that are standing around the structure waiting to enter? I noticed that the move command appears to be active on these units but restricting it to units that have move executing doesn't work.