Jump to content

Making a Gate Lockable


Recommended Posts

Not without making an own addon to change the config

 

OR u run a script on the door ( not good for performance if too many) for example, it keeps checking state of the door and if it opens, it closes again

lock = true;

while {lock}
 do {
	mygate animate ["Bargate",1];
	sleep 0.01;
    };
Link to comment
Share on other sites

well I am wondering...

 

you can do: _unit removeAllEventHandlers "GetIn";

 

to remove the option to get in a vehicle...

 

can you do: _unit removeAllEventHandlers "open";

 

or something like that to remove the eventhandler for opening the door.  I am not sure if "open" is the name of the door opening event

Link to comment
Share on other sites

if we get something like that working then we can just run that on the gate in server monitor at server startup and then add the event handler back when unlock script is called and remove it when locked. Playing with other things at the moment and dont have time to test/play with this atm just throwing out ideas

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
  • Discord

×
×
  • Create New...