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.

Difference between revisions of "Half-Life: Alyx Workshop Tools/Level Design/Trigger Detect Explosion"

From Valve Developer Community
Jump to: navigation, search
(Added HLATools page template)
m (Make entity link to its wiki page)
 
Line 6: Line 6:
 
== Setup ==
 
== Setup ==
  
Create a test room. Insert a '''trigger_detect_explosion''' mesh entity.
+
Create a test room. Insert a '''[[trigger_detect_explosion]]''' mesh entity.
  
 
In the outputs, add the following output:
 
In the outputs, add the following output:

Latest revision as of 01:19, 21 July 2020

Introduction

This tutorial will teach you how detect an explosion inside its volume.

Setup

Create a test room. Insert a trigger_detect_explosion mesh entity.

In the outputs, add the following output:

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

Finishing up

Compile and run your map, and you should have a trigger that, whenever an explosion happens inside it, it will output OnDetectedExplosion.