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

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