Jump to content
  • 0

How to remove option to Lock Vehicle when someone is in it???


shan1784

Question

Hello Everyone,

 

Just as the title says. I'm looking for a way to prevent someone being able to lock a vehicle when someone is currently inside the vehicle.

 

I just added vehicles as indestructable when locked but now I have people locking the vehicle when someone is in it and then going on a rampage.

 

I looked at the ability to make the vehicle destructable when someone is in it but haven't had any luck so now am looking to attack this from a different angle and remove the option to lock the vehicle in the first place...

 

Any help would be appreciated.. Thank you all...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

In your custom fn_selfActions.sqf, search for:

			} else {
				if(_hasKey or _oldOwner) then {

Change it to:

			} else {
				if((_hasKey or _oldOwner) and ((count (crew _cursorTarget)) == 0) then {

 

 

Awesome!!! I was looking at this block but didn't know what to add here to do this check.. Thank  you so much. I'll give it a shot tonight...

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