• 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.

Spawn System

Status
Not open for further replies.
Level 9
Joined
Oct 6, 2007
Messages
406
I'm looking for a Spawn System like in all undead games (Where it'll say something like "Next Spawn in: 1 minute") and how it spawns units in waves (Like a zombie in the first wave, then a rifleman the next wave, untill a time limit is reached) and how the units are all sent after you or another player.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you could use a timer-based system for that:make a periodic timer first
http://www.hiveworkshop.com/forums/f283/countdown-timer-reviewed-ralle-66244/

then create your unit variables, use an array for that
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • set integer = 0
    • set unit[1] = zombie
    • set unit]2] = bigger zombie
    • set unit[3] = ....
and a second trigger for the spawning
  • Events
    • Time - Timer expires
  • Conditions
  • Actions
    • set integer = integer +1
    • create xx unit[integer] for player 12 at random position in playable map area
thats how the spawning basically works, i think there is also a tutorial for creep respawning and thinga like that around here
 
Status
Not open for further replies.
Top