Jump to content
  • 0

indestructible only metaldoors and jammers?


Merbau

Question

8 answers to this question

Recommended Posts

  • 0

Basically you want to load this up on the server (no need to have it in the client files) -----

/*
	File: Indestructable.sqf
	
	Description: Make stuff not blow up
*/

diag_log format['Enigma %1 - Starting Indestructable.sqf',time];

sleep 80;
while {true} do {
	_indestructible = (allMissionObjects "Constructions_static_F") + (allMissionObjects "PlotPole_EPOCH");
    {
		if (!((_x isKindof "WoodLargeWallDoorL_EPOCH") or (_x isKindof "WoodLargeWallDoor_EPOCH") or (_x isKindof "WoodStairs_EPOCH") or (_x isKindof "WoodStairs2_EPOCH") or (_x isKindof "WoodRamp_EPOCH") or (_x isKindof "WoodLargeWall_EPOCH") or (_x isKindof "WoodFloor_EPOCH") or (_x isKindof "WoodLargeWallCor_EPOCH") or (_x isKindof "WoodLargeWallDoorway_EPOCH"))) then {
		_x addEventHandler ["HandleDamage", {false}];
		_x enableSimulation false;
		};
	} count _indestructible;
    sleep 300; // run every 5 minutes
};


diag_log format['Enigma %1 - Completed Indestructable.sqf',time];



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