Page 1 of 1

Hoth's Destructable Command Post

Posted: Sun Jul 31, 2016 10:35 pm
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.

Re: Hoth's Destructable Command Post

Posted: Tue Aug 02, 2016 7:16 pm
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.

Re: Hoth's Destructable Command Post

Posted: Wed Aug 03, 2016 1:59 am
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

Re: Hoth's Destructable Command Post

Posted: Wed Aug 03, 2016 4:52 am
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: