func_door Doors are extremely easy, and
can be used for other things, such as special platforms.
1.Firstly, create a good
sized room (300x300x300) and place your info_player_start and a light in there.
2.Create a door brush,
and build a frame around it, closing it in, but for deatil, leave the area the door goes
into in the wall open. Apply the func_door entity to your door brush. The key values are all very self explanatory.
3.Compile your map and check
out your door.
Here's a special use for func_door that will make a platform stay at its up and down positions, until
triggered by any number of func_buttons.
1.Firstly, create a good
sized room (300x300x300) and place your info_player_start and a light in there.
2.Make a walkway about
halfway up the wall of your room.
3.Create a brush that will be
your platform, and make it so the top face of it is even with the top face of your
walkway. Apply the func_door entity to your brush. You will need to set a few key values
for this use of func_door.
"lip" must be the distance from the bottom face of your platform to the lowest
point it goes down to. This must be entered as a negative number. i.e. the platform is 80
units off the floor, and the platform is 16 units thick; therefore the lip value is -64. 4.Make 2 buttons, one for the
walkway and one for the bottom floor, that are reachable from the platform. Give these
buttons "target" value that matches the "targetname" you gave your
func_door.
5.Now when you press either
button, the platform will either go up and stay, or go down and stay.
6.Compile your map and try it
out.
Here's a sample map showing the simple door
example.
Here's a sample map showing the platform example.
Comments & Questions to |