How to make objects indestructible?

How to make objects indestructible?

« posted: Nov 13, 2014, 02:05 PM »
We would like all purchased and found objects which can obstruct make indestructible. It should not be possible to destroy its towers and posts.

How is that possible? I am working far with the code of Arma3.

It would be very helpful if you give me a few tips how could I reach the goal.

Many thanks.
(And sry for that translated english...)
  • Offline JoSchaap
  • Developer
  • Mercenary
  • ******
  • Posts: 483
  • Had a life.. Got a modem.. (~1996)

Re: How to make objects indestructible?

« Reply #2 posted: Nov 13, 2014, 03:10 PM »
https://community.bistudio.com/wiki/enableSimulation

I know that commands.
i can use "enableSimulation false" and/or "allowDamage false".

But i dont know the file where i must set this commands. Thats my problem.

Re: How to make objects indestructible?

« Reply #3 posted: Nov 13, 2014, 03:42 PM »
In the init of objet you add:

this allowDamage false

Re: How to make objects indestructible?

« Reply #4 posted: Nov 13, 2014, 03:51 PM »
i think you dont understand me...
All objects (except vehicles) that i can buy and find in Wasteland.Stratis should be indestructible!

Players dont should destroy the base of other players on wasteland. Thats the goal...
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2538

Re: How to make objects indestructible?

« Reply #5 posted: Nov 13, 2014, 10:55 PM »
All objects were indestructible before v1.0, but everything was made destructible again because I found it to be really stupid.

Re: How to make objects indestructible?

« Reply #6 posted: Nov 13, 2014, 11:33 PM »
All objects were indestructible before v1.0, but everything was made destructible again because I found it to be really stupid.

Ok. Thanks for that.

Now i can look in other versions. Maybe i can make it :)
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2538

Re: How to make objects indestructible?

« Reply #7 posted: Nov 13, 2014, 11:38 PM »
*except crates. Crates are a real pain in the ass when destructible. Their content is instantly destroyed if you run over them with a Hunter or drop them from a balcony, therefore they are indestructible by default.
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1081
  • ^_^;;

Re: How to make objects indestructible?

« Reply #8 posted: Nov 14, 2014, 07:07 AM »
All objects were indestructible before v1.0, but everything was made destructible again because I found it to be really stupid.

AHA !! I had players complaining that their bases were being shot to crap and breaking lol! I was like what huh lol ;) I like tthe fact that you can destroy someones base with a tank etc ;)


- from the grassy knoll -
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2538

Re: How to make objects indestructible?

« Reply #9 posted: Nov 14, 2014, 07:19 AM »
Flimsy and thin parts are easily destroyable, but concrete barriers are nearly indestructible, as it should be.

Re: How to make objects indestructible?

« Reply #10 posted: Mar 16, 2015, 10:19 PM »
Anyone can make ay noob instruction how to archive this old feature,  in the new 1.1 files ???

thx very much !!

Re: How to make objects indestructible?

« Reply #11 posted: Apr 10, 2015, 07:50 PM »
Flimsy and thin parts are easily destroyable, but concrete barriers are nearly indestructible, as it should be.

Cargo Towers should be indestructable IMO.
Some players just love to grief and this item is one I would like to protect also.

Re: How to make objects indestructible?

« Reply #12 posted: Apr 11, 2015, 06:55 AM »
Ok.

Code: [Select]
_isDamageable = ({_object isKindOf _x} count ["AllVehicles", "Lamps_base_F", "Cargo_Patrol_base_F", "Cargo_Tower_base_F"] > 0);
Change that....

Not sure it persists yet ... oSave.sqf and oLoad might need to be looked at.

Testing.