How do I detect and remove those via triggers?
Also, an additional question, what is wrong with this:
Code
General - Pick each integer from 1 to 6, and do (Actions)
Actions
Unit - Create 1 Orbital Command for player (Picked integer) at (Start location of player (Picked integer)) using default facing (No Options)
Unit - Make (Last created unit) Invulnerable
Variable - Set OrbitalCommand[((Picked integer) - 1)] = (Unit group((Last created unit)))
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 1 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 2 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 3 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 4 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 5 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 6 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 7 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 8 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 9 for player (Picked integer)
Actions
Unit - Create 1 Orbital Command for player (Picked integer) at (Start location of player (Picked integer)) using default facing (No Options)
Unit - Make (Last created unit) Invulnerable
Variable - Set OrbitalCommand[((Picked integer) - 1)] = (Unit group((Last created unit)))
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 1 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 2 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 3 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 4 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 5 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 6 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 7 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 8 for player (Picked integer)
Unit Selection - Add (Unit 1 from (Orbital Command units in (Entire map) owned by player (Picked integer) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) to control group 9 for player (Picked integer)
I'm trying to create OCs at Start Locations and automatically set their hotkey, but none gets created.
None.