• 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] How to Spawn Creeps in a Line

Status
Not open for further replies.
Level 8
Joined
Mar 21, 2008
Messages
239
Hey

I want to know how to spawn creeps in a line. So one creep after another like in Shopping Maul TD where you can decide that.

I use this Trigger

  • Next Lvl
  • Events
  • Time - NxtLvlTim expires
  • Conditions
  • Actions
  • Countdown Timer - Destroy (Last created timer window)
  • Unit - Create Levels_Units_Count[Levels_Current] Levels_Units[Levels_Current] for Player 12 (Brown) at (Center of WPRed1 <gen>) facing Default building facing degrees
and then this for movement:

  • MovementRed
  • Events
  • Unit - A unit enters WPRed1 <gen>
  • Conditions
  • (Owner of (Entering unit)) Equal to Player 12 (Brown)
  • Actions
  • Set loc = (Center of WPRed2 <gen>)
  • Unit - Order (Entering unit) to Move To loc
  • Custom script: call RemoveLocation(udg_loc)
Based on Ralle's Tower Defence Guide

But all Creeps go as a shitty group together! I hope you can help me!

Luckerguy
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
  • Next Lvl
  • Events
    • Time - NxtLvlTim expires
  • Conditions
  • Actions
    • Countdown Timer - Destroy (Last created timer window)
    • For each integer from 1 to max_unit_number do Action
      • Unit - Create 1 Unit at your region
      • Wait - wait 1 second
max_unit_number is an integer which defines how many units will spawn
 
Status
Not open for further replies.
Top