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
Timed life unit spawns
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Timed life unit spawns
For those who aren't following his description... Think Broodlings.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Timed life unit spawns
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
https://springrts.com/wiki/Lua_Scripting