Jump to content
Sign in to follow this  
bracer

Making building indestructable?

Recommended Posts

Hey!

I'm working on some custom houses, and for different reasons I want them to be indestructable atm.

So how, can I in the easiest way possible make sure that my building don't sink into the ground when a M1A1 crashes into it?

Edit the mass, or is it the armor value in the config that needs editing?

Or some other trick!?

Thanks in advance!

Cheers

/Bracer

Share this post


Link to post
Share on other sites

Thanks! Will give it a try!

---------- Post added at 01:52 PM ---------- Previous post was at 12:47 PM ----------

Still no luck, the building still just sinks through the ground.

Here's the config:

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

class CfgPatches {

class bra_battleship {

units[] = {};

weapons[] = {};

requiredAddons[] = {};

};

};

class CfgVehicles {

class wall;

class house;

class bra_wall : wall {

scope = 1;

model = "\bra_battleship\bra_wall.p3d";

armor = 100;

DestrType = "DestructNo";

};

class bra_roof : wall {

scope = 1;

model = "\bra_battleship\bra_roof.p3d";

armor = 200;

DestrType = "DestructNo";

};

class bra_highrise1 : house {

scope = 1;

model = "\bra_battleship\bra_highrise1.p3d";

armor = 2000;

DestrType = "DestructNo";

};

class bra_complex1 : house {

scope = 1;

model = "\bra_battleship\bra_complex1.p3d";

armor = 2000;

DestrType = "DestructNo";

};

};

Share this post


Link to post
Share on other sites

I didn't get the destructType to work.

But I found another simple way,

add a property to the object in O2 and call it "dammage" value = 0.

Share this post


Link to post
Share on other sites

I hope there's no backsides to doing it this way.

Still I need to learn how to write configs properly,

so I'll investigate destructType further.

Thanks again for your help!

I'll probably need more as I progress :-)

Cheers

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×