Half-Life: Alyx Workshop Tools/Level Design/Doors

From Valve Developer Community
Jump to navigation Jump to search

Introduction

This tutorial will teach you how to create doors for HL:A based mods. This doors will can be opened by grabbing the door knob and moving it forward or backwards.

Setup

Create two rooms, with a height of at least 128 units, and separated by 8 units.

HLA SDK Doors Img1.png

Insert a prop_static entity and, for this tutorial, select the model models/architecture/doors_1/door_frame_basic_001.vmdl.

HLA SDK Doors Img2.png

Select the two faces that connect the rooms and clip them using the door frame as a reference. Remove the faces inside the frame.

HLA SDK Doors Img3.png

Insert a prop_door_rotating_physics entity and, for this tutorial, select the model models/architecture/doors_1/door_1a_40_92.vmdl.

HLA SDK Doors Img4.png

Switch the grid size to 2 units and align the door with the frame. For realism, change the property Open Direction to either Open Forward Only or Open Backward Only, since real life doors don't open both ways.

HLA SDK Doors Img5.png

Finishing up

Compile and run your map, and you should have a working door.

You can download the example map here [[1]].

HLA SDK Doors Img6.png