• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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 13
Joined
Nov 4, 2006
Messages
1,239
  • 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