material_timer

From Valve Developer Community
(Redirected from Env material timer)
Jump to: navigation, search
Info target.png

material_timer is a point 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.

Represented by class CMaterialCountdown.

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

Keyvalues

Name (targetname) <string>
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 they 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.