Timed door
From GMod Wiki
Props/wire mod gates
Any door from previous wire tutorials ( basic 2 ball socket and wired hydraulics for opening and closing)
x amount of buttons (toggle off and values of 1 and 0)
1 add chips
2 timer chips
2 greater than chips
1 multiplyer chips
2 constant value chips.
What to do
1.wire each of your buttons to 1 addition chip
2.wire the time (run input) chip to the addition chip
3.wire greater than (a) to time leave the b input so it checks if timer is greater than 0
4.wire the 2nd timer (run input) to the previous greater than chip
5.wire the 2nd greater chip to the second timer and wire the b value to a constant value of your choice (this constant value is how long you want the door to be open for) i.e 5 - 10
6.wire both timers (reset input) to the second greater than value
7.wire the multiplyer to the first greater than value and the second constant value wich should be like 80 - 150 (this const value is the door length)
8.wire the hydraulic length to the multiplyer.
After that it should work press the button and the door should open for 5 or 10 seconds then close.