• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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