How to make doors
Note: This tutorial assumes you already have the basics of a level, ie. a hollowed box and a player start inside it. =]  

For this tutorial we'll be creating two different styles of doors.

Step 1: 

Create a doorway. The easiest way to do that is to subtract the door brush from a wall. I gave mine a little detail, it looks like the standard trapazoid shaped door found throughout the game.
 
 
______________________________________Step 2: 
 
 
Select the door brush and apply the Func\Door entity to it. Open up it's properties, for this example we'll make the door open upwards so goto the angle field and select up from the pull-down menu. If you want the door to open when shot rather than touched, give it a low health value such as 1. The next few fields are pretty basic: speed is how fast the door will open and close, wait is how long it will wait before closing, lip is how far it will stick out when open, and dmg is how much damage it deals if it closes on a player. Pick a sound for the door, medium is pretty good. If you want to control the door with a button, input the neccesary info in the target and targetname fields. In the spawnflags field you want a value of zero so that the door will open and then close a few seconds later. If your controlling the door with a switch, you may want to choose toggle from the pull down menu in the spawnflags field. That will make it so you need to hit the button to both open and close the door.
Step 3: 
That is a simple up and down door. Making a double sliding door is just as easy. Create a simple square doorway. This time, instead of putting one door brush inside it, share the space with two equal sized brushes side by side. Apply the Func/Door entity to both halves of the door. Keep all the properties the same from the last door, but change the angle fields on each half. You want the doors to open by sliding apart, so for the right side choose west in the angle pull-down menu and on the left side choose east
 
 
That's it! Go play with your doors!
Back to index | Download the map and bsp

Copyright ©1998 Bryan Beretta and Lithium Software. All rights reserved. Permission required for
use of any and all material found on or downloaded off this site for purposes other than learning.