Page 1 of 1

units spawning other units

Posted: 11 Aug 2010, 17:16
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?

Re: units spawning other units

Posted: 11 Aug 2010, 17:27
by Pxtl
See Complete Annihilation's aircraft carrier, it behaves like the Protoss carrier from classic StarCraft.

Re: units spawning other units

Posted: 11 Aug 2010, 17:38
by dcore221
do you have the unit name?

Re: units spawning other units

Posted: 11 Aug 2010, 22:47
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.

Re: units spawning other units

Posted: 11 Aug 2010, 23:17
by dcore221
thanks :)

Re: units spawning other units

Posted: 12 Aug 2010, 17:38
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

Re: units spawning other units

Posted: 12 Aug 2010, 17:57
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).

Re: units spawning other units

Posted: 12 Aug 2010, 19:01
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?

Re: units spawning other units

Posted: 12 Aug 2010, 19:22
by dcore221
Image

Uploaded with ImageShack.us