• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Problems with an uncooperative trigger

Status
Not open for further replies.
Level 6
Joined
Dec 23, 2008
Messages
166
I want to make the melle startup file "give start units to all players" only affect my 2 computer players. I have been trying to use triggers to remove the start units from everyone else, but there isn't anything to remove because the start units havn't spawned.
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
Spawn the units first for all players and then pick the other players units and remove them.
Something like this:
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Spawn starting units
    • Unit Group - Pick all units owned by THE OTHER PLAYERS
      • Loop - Actions
        • Set unit = Picked Unit
        • Unit - Remove Unit(unit)
NOTE: I didn't use the world editor to create this trigger.
 
Status
Not open for further replies.
Top