units spawning other units

units spawning other units

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
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

units spawning other units

Post by dcore221 »

is it posable for a unit to use other units as its weapon?
like fighter jets on a 10 round burst and reload every 5mins
host unit will have a hatch where they come from
can this be done?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: units spawning other units

Post by Pxtl »

See Complete Annihilation's aircraft carrier, it behaves like the Protoss carrier from classic StarCraft.
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: units spawning other units

Post by dcore221 »

do you have the unit name?
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: units spawning other units

Post by CarRepairer »

It's the reef, see here:

http://trac.caspring.org/wiki/UnitGuide#Shipyard

You can hover over the buildpictures to see the internal name if you want to cheat the unit in.
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: units spawning other units

Post by dcore221 »

thanks :)
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: units spawning other units

Post by dcore221 »

been taking a look at the .lua i cant find what part refers to the drones it spawns (gulls)
could you maybe point it out or am i looking in the wrong place?
http://pastebin.com/DMSt5NVN
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: units spawning other units

Post by CarRepairer »

It's actually a lua gadget that does this.

http://trac.caspring.org/browser/trunk/ ... drones.lua

You might need some lua know-how if you want to adapt this gadget to your game. I suggest joining the #lua channel in the lobby if you need help (or ask here, but realtime is better).
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: units spawning other units

Post by dcore221 »

got it working!
nice feature will add something extra to my mod thanks :-)

would this also work with fbi/tdf being the host unit? or is it a lua only thing?
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: units spawning other units

Post by dcore221 »

Image

Uploaded with ImageShack.us
Post Reply

Return to “Game Development”