• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to make an auto spawn unit!

Status
Not open for further replies.
Level 2
Joined
Nov 4, 2017
Messages
7
Hello! Can you guys help me with the auto spawn unit for building? Like when the worker build the Barrack, the Barrack will be automatically spawn 1 Footman per 2 second (like in castle fight).
Thanks! :)
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
There are some options for this.

one would be to make a periodic trigger which every 2 seconds picks each unit of type barracks and creates a unit of type footman at the position of the picked unit.
another one would be to set the build time for the footman to 2 second and the build cost to 0 and then order the unit to buid a footman upon creation of the building and recreate it every time a footman is finished.

both option are fairly easy triggers, even for beginners, if it's still not clear, leave a message, i can provide a dummy map for you during the weekend.
 
Status
Not open for further replies.
Top