• 🏆 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!

Spawn And Move Monsters?

Status
Not open for further replies.

Spo

Spo

Level 6
Joined
Jun 1, 2009
Messages
122
How do you make the type of spawn system like in graveyard defence like you pick your hero and wait a while.When you kill that wave of enemys you wait again and it sapwns a diffent wave of enemys :spell_breaker:
ALSO: how do you make them move to a palce and battle enemys geting there?
 
Level 4
Joined
Jul 24, 2009
Messages
59
Heres what a DotA/AoS style spawn should look like.

  • Human Spawns BL
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 4 Footman for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 2 Knight for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit - Create 2 Tank for Player 2 (Blue) at H_SPAWN facing 270.00 degrees
      • Unit Group - Order (Units in Human Spawn <gen>) to Attack-Move To Center
 
Level 9
Joined
Dec 17, 2008
Messages
312
  • Kicking
    • Events
      • Time - Elapsed game time is 25.00 seconds
    • Conditions
    • Actions
      • Set tempoint = (Center of SpawnUnits <gen>)
      • Unit - Create 1 Footman for Player 1 (Red) at tempoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to tempgroup
      • Unit - Create 1 Rifleman for Player 1 (Red) at tempoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to tempgroup
      • Unit - Create 1 Knight for Player 1 (Red) at tempoint facing Default building facing degrees
      • Unit Group - Add (Last created unit) to tempgroup
      • Set tempoint = (Center of MoveUnits <gen>)
      • Unit Group - Pick every unit in tempgroup and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To tempoint
      • Custom script: call RemoveLocation(udg_tempoint)
      • Custom script: call DestroyGroup(udg_tempgroup)
This is a spawn that removes leaks. If that helps any?

- Xeno.
 
Status
Not open for further replies.
Top