Spawned Starting Units

Status
Not open for further replies.
Level 7
Joined
Jul 25, 2008
Messages
292
I have made a map that forces all players to start as the Night Elfs, I want to keep the building but not the wisps. Is there a way to do this? I have tried getting rid of the trigger "Spawn Starting Units" but that also gets rid of the building.
 
Or you could do this too but a bit more complex.

  • Create Appropriate Barracks
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If ((Race of (Picked player)) Equal to Human) then do (Unit - Create 1 Blood Elf Barracks for (Picked player) at ((Picked player) start location) facing Default building facing degrees) else do (Do nothing)
Just Changed human to nightelft and Blood Elf Barracks to Tree of Life.
 
Remember to remove the leak tho (player start location). Set it to a variable and then do custom script: call RemoveLocation(TempLoc). Replace TempLoc with ur var name.

I think that just removing all the wisps after like .1 seconds into game wud be better tho. .1 seconds is to make sure they actually spawn before you try to remove em.
 
Status
Not open for further replies.
Back
Top