Material timer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
No edit summary
 
Line 1: Line 1:
{{This is a|point entity|name=material_timer|game=Black Mesa|sprite=Info_target.png}} This is a simple point entity that does a countdown (like buttons with timer in {{portal2|4}}) and fire outputs. It doesn't do anything with [[materials]] despite the [[classname]].
{{CDA|CMaterialCountdown|CBaseEntity|}}
 
{{This is a|logical entity|name=material_timer|game=Black Mesa|sprite=Info_target.png}} This is a simple point entity that does a countdown (like buttons with timer in {{portal2|4}}) and fire outputs. It doesn't do anything with [[materials]] despite the [[classname]].
Represented by class <code>CMaterialCountdown</code>.


{{altnames|name1=env_material_timer}}
{{altnames|name1=env_material_timer}}

Latest revision as of 23:56, 26 May 2025

C++ Class hierarchy
CMaterialCountdown
CBaseEntity
Info target.png

material_timer is a logical entity available in Black Mesa Black Mesa. This is a simple point entity that does a countdown (like buttons with timer in Portal 2 Portal 2) and fire outputs. It doesn't do anything with materials despite the classname.

AltNames.pngAltNames: This entity is also tied to env_material_timer.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Length (radius) <float>
Length of countdown.

Inputs

start <void>
Start the countdown.
stop <void>
Stop the countdown.
Note.pngNote:Both takes a float value in original FGD. In the game itself both don't take any value.

Outputs

OnStart
Fires when countdown is started.
OnFinish
Fires when countdown is finished successfully.
OnStop
Fires when countdown is stoped by stop input.
Icon-Bug.pngBug:Also fires when countdown finished.