This article's documentation is for anything that uses the Source engine. Click here for more information.

Trigger: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(These bugs/issues are its features, people should know about it if it is interesting to anyone.)
Tag: Undo
(Undo revision 399964 by MyGamepedia (talk))
Tag: Undo
Line 1: Line 1:
{{ent not in fgd|nolink=1}}
{{ent not in fgd|nolink=1}}
{{CD|CBaseTrigger|file1=triggers.cpp}}
{{CD|CBaseTrigger|file1=triggers.cpp}}
{{this is a|e2|name=trigger}} It's is a generic trigger [[entity]].
{{this is a|e2|name=trigger}} It's a generic trigger [[entity]] probably existing for debugging purposes and it's not intended to be used outside of that.
 
As an entity prefix, '''trigger''' entities are spatial volumes (in other words, brushed-based [[entity#Brush_entities|entities]]) which trigger [[output]]s depending on what touches them and how.
{{bug|Can be triggered only via I/O. Can't be triggered by touching it even with <code>TouchTest</code> input.}}
{{bug|Console command {{command|showtriggers_toggle}} doesn't show this entity.}}
 
The two most common triggers are:
*{{ent|trigger_once}}
*{{ent|trigger_multiple}}
Several other trigger entities [[:Category:CBaseTrigger|also exist]].


== See also ==
== See also ==
* [[Triggers]]
* [[Triggers]]
* {{ent|trigger_multiple}}
* {{ent|trigger_once}}

Revision as of 05:44, 15 May 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger is an e2 available in all Source Source games. It's a generic trigger entity probably existing for debugging purposes and it's not intended to be used outside of that.

See also