Liqu1dShadow Posted October 6, 2014 Report Share Posted October 6, 2014 There is a component in the game called "gate" and is a rusty barbed wire gate. Is there any way to make this a lockable gate? say if you have a scrap metal, tin can, and combo lock in your inventory? Link to comment Share on other sites More sharing options...
Zupa Posted October 7, 2014 Report Share Posted October 7, 2014 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 More sharing options...
Meowzors Posted October 7, 2014 Report Share Posted October 7, 2014 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 More sharing options...
Meowzors Posted October 7, 2014 Report Share Posted October 7, 2014 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 More sharing options...
carl101 Posted October 7, 2014 Report Share Posted October 7, 2014 Plus these gate can easily be ran down so all the hard work going into making them lockable will be lost Link to comment Share on other sites More sharing options...
Liqu1dShadow Posted October 8, 2014 Author Report Share Posted October 8, 2014 Plus these gate can easily be ran down so all the hard work going into making them lockable will be lost good point, any way to stop this as well? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now