Jump to content
  • 0

Indestructible Locked Vehicles Take Damage After Restart


Tricks

Question

Hey all,

 

I have the locked vehicles take no damage script running fine on my server except for one issue. After restart any locked vehicle will take damage unless you manually relock it. Anyone know of a fix? Thanks!!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

it has to be something in the dayz_Server/system/server_monitor.sqf

something like

find:

 if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then {
 _object setvehiclelock "locked";
};

and change to:

 if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then {
 _object setvehiclelock "locked";
_object addEventHandler ["HandleDamage", {false}];
};

something like that ...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...