Timed life unit spawns

Timed life unit spawns

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
Shoxter
Posts: 25
Joined: 20 Jul 2006, 18:28

Timed life unit spawns

Post 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
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Timed life unit spawns

Post by Forboding Angel »

For those who aren't following his description... Think Broodlings.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Timed life unit spawns

Post 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
Post Reply

Return to “Game Development”