Prop_dynamic doors/gates - A quick guide

Prop_dynamic doors/gates - A quick guide

Assumed Knowledge:
Basic Hammer Skills
You can create a brush based Button
Input/Output Usage

The door
Create a prop_dynamic entity in your level. I can recommend checking out the different sequences/animations to see how it looks like when it's open/closed. (Model Tab).
Name it something relevant as per good practice.
news post image

In this example, I've named it d_combinegate.

The button
This is entirely up to you. There are many ways to create buttons in hammer and they work in much the same ways.
This is the simplest way that I can think of to create a button.

Create a func_button brush and give it an appropriate texture. You don't have to name the func_button brush.

The logic
Alright, this is the fun part. If you haven't checked out the sequence/animation names for your door/gate model, doing so now would be a good idea.

Create a news post image logic_branch entity and name it m_combinegate_logic.
Set its initial value to 0 (false).

news post image

Next, go into its output tab and set it up like the picture.
news post image

    OnFalse d_combinegate SetAnimation close 0.00 No
    OnTrue  d_combinegate SetAnimation open 0.00 No

Return of the button
Go back to your func_button brush and set up the output like so:

news post image

 OnPressed m_combinegate_logic ToggleTest <empty> 0.00 No 

Relevant reading material
- Corewarp

View comments ( 0 )

Back to top