• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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