• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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,240
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