Page 1 of 1

Timed life unit spawns

Posted: 31 May 2017, 10:26
by Shoxter
I'm trying to find a working example of a timed life unit spawner. Have searched high and low but can only find overly complicated stuff like chicken defense which has so much other stuff involved I'm getting lost trying to find the basic functions.

Could someone please point me in the direction of a working example of a basic unit spawn script e.g: a peewee that will spawn 10 peewees every 30 seconds from itself and have a timed life of a minute or whatever. Thanks

Re: Timed life unit spawns

Posted: 31 May 2017, 13:46
by Forboding Angel
For those who aren't following his description... Think Broodlings.

Re: Timed life unit spawns

Posted: 31 May 2017, 16:23
by Google_Frog
The minelayer artillery in Zero-K has a fairly simple gadget that spawns timed life units on projectile impact. Perhaps you should just look at the wiki though as there are straightforward functions for creating and destroying units under synced control.

https://springrts.com/wiki/Lua_Scripting