Hoth's Destructable Command Post

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
AdmiralPulp
Posts: 1
Joined: Fri Jul 29, 2016 10:28 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

Hoth's Destructable Command Post

Post by AdmiralPulp »

I'm wondering how to make a command post like the one on Hoth. The one next to the shield generator that stops working when the shield generator is destroyed. I want it so I can put a command post on a capital ship that disappears when the ship is destroyed.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Hoth's Destructable Command Post

Post by AnthonyBF2 »

AdmiralPulp wrote:I'm wondering how to make a command post like the one on Hoth. The one next to the shield generator that stops working when the shield generator is destroyed. I want it so I can put a command post on a capital ship that disappears when the ship is destroyed.
The generator on Hoth is a command post, that goes away when it's broken. There are easy ways to get rid of a command post when something happens but it requires some Lua coding which I am not too bright at.

If you want to actually make a destructible command post, just add MaxHealth = 100 in the command post ODF file. Of course 100 is an example, you make yours any number you want.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Hoth's Destructable Command Post

Post by Marth8880 »

AnthonyBF2 wrote:you make yours any number you want.
Well, any number under 2147483647 anyway. :u https://msdn.microsoft.com/en-us/library/296az74e.aspx
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Hoth's Destructable Command Post

Post by Anakin »

Marth8880 wrote:
AnthonyBF2 wrote:you make yours any number you want.
Well, any number under 2147483647 anyway. :u https://msdn.microsoft.com/en-us/library/296az74e.aspx
since a negative health makes no sense, they may use unsigned variables. In that case you can go up to 4294967295 :music:
Post Reply