Destroyed object causes destruction of another?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Evman
Corporal
Corporal
Posts: 156
Joined: Sun Nov 21, 2010 11:31 pm
Projects :: Kamino part 1 orbital attack
Games I'm Playing :: Halo Reach
xbox live or psn: GamerXEv
Location: The Planet Reach

Destroyed object causes destruction of another?

Post 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?
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Is it possible...

Post by Firefang »

Yes, but it will require some lua coding.
User avatar
Evman
Corporal
Corporal
Posts: 156
Joined: Sun Nov 21, 2010 11:31 pm
Projects :: Kamino part 1 orbital attack
Games I'm Playing :: Halo Reach
xbox live or psn: GamerXEv
Location: The Planet Reach

Re: Is it possible...

Post by Evman »

Does anyone know what the code it?
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Destroyed object causes destruction of another?

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyed object causes destruction of another?

Post by DarthD.U.C.K. »

or in the mygeeto campaign lua, i think you diasabeled a shield by destroying a generator there.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Destroyed object causes destruction of another?

Post by SAMofBIA »

you could always use the linked destroyables function found in most any space map.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Re: Destroyed object causes destruction of another?

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