logo

How to make sliding doors
by Egir Helgrimson

      In this tutorial I will explain how a sliding door is made, and how we make that look more 1337 than just a plain door. (note I use 16 units as gridsize if nothing else apears in the text)

     First we have a wall 16 units wide, we want to make a door through this.

      A door should be 64 unit wide and 96unit heigh (some prefere 80x96, which goes just fine in most cases). We need to add a frame to the door to make it look good. Our add a frame technique is to place our door fist and then clip the frame out. In other words make a 64x96 unit door and place it where you want your door. Like this:

      Now change the gridsize from 16 to 4 and mark the wall.

      Click three times on the clipping tool to go in "cut through but don't cut away" mode and clip one square (4 units) outside the door. Start out with the two vertical cuts.

      Mark the remaining middle part of the wall. Then cut the marked brush one unit above the door.

      Now we can make the frame by carving out the door (carving can destroy brush work, so be shure to save the map first. When carving with a simple 6 sided 90 degree brush in a 6 sided 90 degree brush (both nonrotated), it is not dangerous to use carve, in allmost any other case dont use carve). Change the gridsize back to 16 and make shure the door brush goes all the way through the wall.

      Make shure the door brush is marked and press Shift + Ctrl + C to carve through the wall. If it destroyed anything just reload the map (you saved that before didn't you)

     If the gods are on our side it should look something like this:

      Now change the gridsize to down to two and resize the door (the brush we used to carve with) to four units width and place it in the middle of the doorway. Se picture beneath.

     Change the gridsize back to 16 so you don't mess up your map later on. Mark the door frame and give it a darker texture than the wall.

      Mark the door and align the textures to center. We got ourselves a nice looking door now, don't we:

      Problem is, the door can't open. Mark the door brush. Press Ctrl + T to tie it to entity. Choose func_door in the drop down menu.

      Ajust the angle to the direction you want the door to open (see the x/y window) I want My door to open toward right in the x/y window. Therefore I set the angle to 0.

      Now the door will open whenever a player walks into it. It will close again after four seconds. When it opens it will move the door brush its own length in the direction choosen by angle. Since that would make it disapear into the wall we want to have it 4 units outside the wall when opened. Therefore we write 4 in lip

      When I compiled my door looked like this when closed

      And like this when opened

     

Back


Last updated the 30th of august2003 - Copyright www.egir.dk