Automatic Door
From GMod Wiki
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Automatic Door
What you will need:
Props:
- A door base
Mainly just 2 PHX (1x2) plates with sliders
Wire:
Spawn these on the NON-MOVING part of the door
- Hydralic
- Between the two plates, parallel to the sliders
- Beacon Sensor [Output: Distance]
- Target Finder [What ever you prefer]
Expression (Expression 2):
@Name Door Expression @Inputs Dist @Outputs Length @persist @trigger all
if (Dist <= 200) {Length = #Enter the 'ON' Hydralic Length here} else {Length = #Enter the 'OFF' Hyralic Length here
#Line 1: IF Distance is less then or equal to 200 then Hydralic Length is set 'ON' #Line 2: ELSE *IF NOT Less then or equal to 200* then Hydralic Length is set 'OFF'
Done?:
- No!
Wiring:
- Expression(IN: Dist) -> Beacon Sensor(OUT: Distance)
- Hydralic(IN: Length) -> Expression(OUT: Length)
Done?:
- Sorta!
- Test it out acouple times,
- If you want it to open at a sorter distance, make 200 smaller
- Also Edit the length if you need to
Done?:
- Yes!