This article relates to the game "Half-Life: Alyx". Click here for more information.
This article relates to the workshop tools for "Half-Life: Alyx". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

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

From Valve Developer Community
Jump to: navigation, search
English Русский


This tutorial will teach you how to create buttons for HL:A based mods.


Create a test room. Insert a prop_dynamic. For this tutorial, set its model to models/props/button_1_pusher.vmdl

HLA SDK Buttons Img1.png

Insert a func_physical_button mesh entity. Match its volume to the model you chose for the prop_dynamic and, for this tutorial, set the following properties:

Key Value
Name button_pusher
Move direction <align it with the push direction>
Speed 10
Delay Before Reset 0
Use sound Button_Basic.Press

HLA SDK Buttons Img2.png

In the outputs, add the following output:

My Output Target Entity Target Input Parameter Delay
OnPressed <targetEntity> <input> 0.00

Select the prop_dynamic again and set its Parent Name to button_pusher.

Finishing up

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