I don't think you'd need to pick the unit. Just say that when a unit enters a region then do the action.
You can use "last created unit" that's useful for a lot of things when selecting a unit to command or issue an action.
For the entering a region part I use this to issue orders to units in the region.
Unit - Order all units in (Any units in Group 2 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to ( Attack targeting (Center of Group 1)) (Replace Existing Orders)
That action will issue an order to all unit in the specified region(group 1) to attack move to my other region(group 2). You can put that on a loop. always make sure your loop contains a wait command otherwise it will fail because it executes too quickly.
Althought I have other spawns going while this one is So I am not sure if the last created would work since it takes the ship 70 seconds roughly to get there.
Also doing what you said. It won't let me do this part with the
Unit - Order all units in (Any units in Group 2 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to ( Attack targeting (Center of Group 1)) (Replace Existing Orders)**
How would i go about "picking" a player and "picking" a unit.
I would like to "pick" a unit that spawns in and when it enters a region it responds to "picked unit enters region" and does something.
I don't think you'd need to pick the unit. Just say that when a unit enters a region then do the action.
You can use "last created unit" that's useful for a lot of things when selecting a unit to command or issue an action.
For the entering a region part I use this to issue orders to units in the region.
Unit - Order all units in (Any units in Group 2 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to ( Attack targeting (Center of Group 1)) (Replace Existing Orders)
That action will issue an order to all unit in the specified region(group 1) to attack move to my other region(group 2). You can put that on a loop. always make sure your loop contains a wait command otherwise it will fail because it executes too quickly.
@gorang: Go
thanks :)
Althought I have other spawns going while this one is So I am not sure if the last created would work since it takes the ship 70 seconds roughly to get there.
Also doing what you said. It won't let me do this part with the
Unit - Order all units in (Any units in Group 2 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to ( Attack targeting (Center of Group 1)) (Replace Existing Orders)**
If your 'ship' is the only unit of that type (like 'medivac') you can use the trigger on all units of type 'medivac'