Jump to content
  • 0

Making buildings indestructible (Non epoch buildings)


aev1tas

Question

I'm wondering if it is possible to make existing buildings indestructible. For example, I have made an AI camp at green mountain, and i would like the buildings to be indestructible (jailhouse, surrounding walls, etc.) 
 

I searched and i couldn't find any solutions. Additionally, I would also like to make Devils Castle indestructible as that is where my admin base is. 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

For some of my custom added map buildings i have added this to them. 

_obj addEventHandler ["HandleDamage", {false}];

So that it looks like this: (my format is not default though)

_obj = createVehicle ["Land_A_Villa_EP1", [11336.552, 8369.0137, 0.77930421], [], 0, "CAN_COLLIDE"];
_obj addEventHandler ["HandleDamage", {false}];
_obj setDir -2.0815525;
_obj setPos [11336.552, 8369.0137, 0.77930421];
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...