Jump to content
  • 0

Building Hit Points


TheSeventhSense

Question

I have a question about the buildings spawned in with the editor. I currently use an sqf file that calls in the mission file init. My question is how do I set the hitpoints for the objects? For example, I want to make the castle walls basically indestructible by making the hitpoints a very high number. Is there a line of code that you can put in to set those values?

 

_vehicle_22 = objNull;

if (true) then

{

  _this = createvehicle ["Map_A_Castle_Wall1_20", [3777.3025, 7971.9102, 3.7063589], [], 0,

  "CAN_COLLIDE"];

  _vehicle_22 = _this;

  _this setDir 123.26903;

  _this setPos [3777.3025, 7971.9102, 3.7063589];

};

 

Thank you in advance for your help

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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...