• 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] spawning trigger(bfme/lordaeron tactics)

Status
Not open for further replies.
Level 2
Joined
Sep 22, 2007
Messages
19
how can i do spawns like in battle for middle earth or lordaeron tactics?
spawn count should depend on castle count.(more castles=more units)

spawns should spawn on certain rect.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Allright, I didn't open WE for this, so the actions might not be exactly correct, but it's about this:

  • Spawn
  • Events
    • Time - Every 10.00 seconds of game time
    • (You can use other events as well)
  • Conditions
    • (I don't think this needs conditions... depends on your map, though)
  • Actions
  • For each (Integer A) from 1 to Number of players, do
    • Loop - Actions
      • Set TempUnitGroup = (Units owned by (Player(Integer A)) of type Your Building)
      • Set TempLoc = (Center of Spawn-Region)
      • Unit - Create (Number of units in TempUnitGroup) Units for (Player(Integer A)) at TempLoc facing 270.00 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: call DestroyGroup(udg_TempUnitGroup)
That wasn't really hard, was it? ;)
This is time-based, since I don't know when the units will be spawned or anything...
 
Status
Not open for further replies.
Top