Trigger brush: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (trigger_brush)
("development of HL2 beta" does not make sense)
Line 1: Line 1:
{{obsolete|entity=1}}
{{obsolete|entity=1}}
{{ent not in fgd}}
{{ent not in fgd}}
{{base_brush|trigger_brush}} Deprecated entity during the development of Half Life 2 Beta, it's sole difference compared to other entities is that a <code>OnUse</code> output exists.
{{base_brush|trigger_brush}} Deprecated entity during the development of Half Life 2, it's sole difference compared to other entities is that a <code>OnUse</code> output exists.
{{note|The brush ''is'' fully solid unlike other trigger [[entities]].}} {{note|Use [[func_button]] instead, it behaves like trigger_brush but is more likely to work on any version of source.}}
{{note|The brush ''is'' fully solid unlike other trigger [[entities]].}} {{note|Use [[func_button]] instead, it behaves like trigger_brush but is more likely to work on any version of source.}}
{{note|The player events (such as <code>game_playerdie</code>) are useable by all entities and not just by this entity, despite common misconception. The list of those is now available on the [[Targetname]] page.}}
{{note|The player events (such as <code>game_playerdie</code>) are useable by all entities and not just by this entity, despite common misconception. The list of those is now available on the [[Targetname]] page.}}

Revision as of 22:15, 24 March 2021

Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Template:Base brush Deprecated entity during the development of Half Life 2, it's sole difference compared to other entities is that a OnUse output exists.

Note.pngNote:The brush is fully solid unlike other trigger entities.
Note.pngNote:Use func_button instead, it behaves like trigger_brush but is more likely to work on any version of source.
Note.pngNote:The player events (such as game_playerdie) are useable by all entities and not just by this entity, despite common misconception. The list of those is now available on the Targetname page.
C++ In code, it is represented by theCTriggerBrushclass, defined in themodelentities.cppfile.

FGD Code

@SolidClass base(Targetname, Parentname, Global, EnableDisable) = trigger_brush
[
	input Use(void) : "Fires the OnUse output."
	output OnUse(void) : "Fired when the Use input is given."
]

Keyvalues

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnUse
Fired when the Use input is given.

See also