Destroyed object causes destruction of another?
Moderator: Moderators
- Evman
- Corporal

- Posts: 156
- Joined: Sun Nov 21, 2010 11:31 pm
- Projects :: Kamino part 1 orbital attack
- xbox live or psn: GamerXEv
- Location: The Planet Reach
Destroyed object causes destruction of another?
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?
- Firefang
- Major

- Posts: 518
- Joined: Mon Nov 15, 2010 8:55 pm
- Location: California
Re: Is it possible...
Yes, but it will require some lua coding.
- Evman
- Corporal

- Posts: 156
- Joined: Sun Nov 21, 2010 11:31 pm
- Projects :: Kamino part 1 orbital attack
- xbox live or psn: GamerXEv
- Location: The Planet Reach
Re: Is it possible...
Does anyone know what the code it?
- Firefang
- Major

- Posts: 518
- Joined: Mon Nov 15, 2010 8:55 pm
- Location: California
Re: Destroyed object causes destruction of another?
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.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Destroyed object causes destruction of another?
or in the mygeeto campaign lua, i think you diasabeled a shield by destroying a generator there.
- SAMofBIA
- Major General

- Posts: 649
- Joined: Tue Jun 15, 2010 3:38 pm
- Projects :: Nothing....nothing at all.
- xbox live or psn: No gamertag set
- Location: MIA and not stopping in often anymore.
Re: Destroyed object causes destruction of another?
you could always use the linked destroyables function found in most any space map.
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Re: Destroyed object causes destruction of another?
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.
