Making custom buildings indestructable

In my server people can donate for a "MBG_Warehouse_InEditor" , but the problem is that some people take the time to blow the building down and destroy their vehicles. I've tried a code for this, but it didn't work. Any ideas?
 
_this allowDammage false;

like so

Code:
_unit_13 = objNull;
if (true) then
{
  _this = createAgent ["Profiteer4", [11449.484, 11341.03, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _unit_13 = _this;
  _this setDir 34.525925;
  _this setVehicleInit "this allowDammage false;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false;
 
};

and if you add the setVehicleInit portion too, you'll need

Code:
processInitCommands;
at the very bottom of the sqf before the closing bracket​
 
Back
Top