Creating double doors the proper way

From Valve Developer Community
Revision as of 23:40, 9 September 2018 by TobyTurbo64 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In this tutorial, we will be making double doors properly.
By that I mean, when trying to open one door,
it will open the second door at the same time.

Using prop_door_rotating

Create two point entities in your level and change them both to "prop_door_rotating".
make sure that they open in the same direction!

Here's what they should look like in game at this point.
The next step is to give both of them a unique name, I've named mine "door_left" and
"door_right" respectivly.

Setting up the Outputs.

We need to create a total of four Outputs (Two per door), for this to work.
Here are Tables showing the Outputs for each door.

door_left
Parameter Value
My Output Named OnClose
Target Entities Named door_right
Via This Input Toggle
Parameter Override None
Delay This Input 0.00
Fire Only Once No
Parameter Value
My Output Named OnOpen
Target Entities Named door_right
Via This Input Toggle
Parameter Override None
Delay This Input 0.00
Fire Only Once No
door_right
Parameter Value
My Output Named OnClose
Target Entities Named door_left
Via This Input Toggle
Parameter Override None
Delay This Input 0.00
Fire Only Once No
Parameter Value
My Output Named OnOpen
Target Entities Named door_left
Via This Input Toggle
Parameter Override None
Delay This Input 0.00
Fire Only Once No

func_door_rotating

Rather than creating a point entity, we're going to be using a "brush entity" called
"func_door_rotating".
After creating the entities, naming them and messing around with the point which doors rotate around,
follow the same steps as before for the creating the Outputs.
After you've done that, go to the flags tab and turn on the following

  • Use Opens
  • Toggle

You can also turn "Touch Opens" on if you wish to.