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