WiseOneWayDoor: One-way door
This tutorial was originally created by wisemx. It was originally posted on SDKnuts.net.
Introduction
This tutorial was by request. Several mappers recently requested a door that would only open in one direction and could also be used at angles. For example, cellar doors that swing open. With this project I also created a swinging door that can be broken. That’s a bonus; I used it to create the other two doors.
Creation
Once you have created your brush based door and have it in place press Ctrl+T and make it a func_rot_button.
"Button?" Yes and I know that seems funny but it’s going to work just like a door and it will only open in the direction you want. In the example I’ve created for this tutorial all three of the doors are identical to start with then two are converted to func_rot_button
and of those two one will open in each direction but only in that direction.
These are the properties for both func_rot_button
doors:
- Pitch Yaw Roll: 0 0 0
- Speed: 100
- Sounds: Squeaky
- Delay Before Ret: 3
- Distance: 90
- Flags: Toggle, Use Activated
The left door also has the Reverse Dir flag checked. This will make them travel in opposite directions.
Both doors will open when the player presses the Use key, one door will open inward and the other outward but they will each only open in that direction, and they will wait if the player is blocking them, then they will complete their 90 degree turn. These doors can be locked and unlocked and they can be opened or closed via inputs and you can make this door move at just about any angle you desire.