Page 1 of 1
Destroyed object causes destruction of another?
Posted: Sun Dec 05, 2010 11:05 pm
by Evman
Is it possible to make a reactor core in a capital ship and when you destroy it the whole ship will blow up like in Elite squadron?
Re: Is it possible...
Posted: Sun Dec 05, 2010 11:25 pm
by Firefang
Yes, but it will require some lua coding.
Re: Is it possible...
Posted: Sun Dec 05, 2010 11:38 pm
by Evman
Does anyone know what the code it?
Re: Destroyed object causes destruction of another?
Posted: Mon Dec 06, 2010 2:46 am
by Firefang
There is no prewritten code for it. You can look in the space luas (BF2Modtools/space_template/Common/scripts/@#$) for a model of some KillObject code.
Re: Destroyed object causes destruction of another?
Posted: Mon Dec 06, 2010 2:54 pm
by DarthD.U.C.K.
or in the mygeeto campaign lua, i think you diasabeled a shield by destroying a generator there.
Re: Destroyed object causes destruction of another?
Posted: Sat Dec 11, 2010 4:16 pm
by SAMofBIA
you could always use the linked destroyables function found in most any space map.
Re: Destroyed object causes destruction of another?
Posted: Sun Dec 12, 2010 5:04 pm
by jangoisbaddest
It would also involve adding an explosion to the various objects that constitute the hull of the capitol ship. Otherwise the objects would simply disappear, which would be rather anticlimactic. Also, it's advisable to activate a death or damage region for people not in a ship that covers the entire living area of the cap ship. Otherwise, I'm guessing that you would just start falling if you were on board when it happened. This is a lot of educated guesswork on my part, as I've never seen this done in BFII before, but that's how I'd go about it.