Material timer: Difference between revisions
Jump to navigation
Jump to search

AltNames: This entity is also tied to
Bug:Also fires when countdown finished.
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{This is a| | {{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]]. | |||
{{altnames|name1=env_material_timer}} | {{altnames|name1=env_material_timer}} | ||
Line 12: | Line 11: | ||
{{I|start|param=void|Start the countdown.}} | {{I|start|param=void|Start the countdown.}} | ||
{{I|stop|param=void|Stop the countdown.}} | {{I|stop|param=void|Stop the countdown.}} | ||
{{note|Both takes a [[float]] value in original [[FGD]]. In the game itself | {{note|Both takes a [[float]] value in original [[FGD]]. In the game itself both don't take any value.}} | ||
==Outputs== | ==Outputs== | ||
Line 18: | Line 17: | ||
{{O|OnFinish|Fires when countdown is finished successfully.}} | {{O|OnFinish|Fires when countdown is finished successfully.}} | ||
{{O|OnStop|Fires when countdown is stoped by {{code|stop}} input. | {{O|OnStop|Fires when countdown is stoped by {{code|stop}} input. | ||
{{bug|Also fires when countdown finished. | {{bug|hidetested=1|Also fires when countdown finished. | ||
}} | |||
}} | }} |
Latest revision as of 23:56, 26 May 2025
![]() |
---|
CMaterialCountdown |

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

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
ortarget
).
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.
Outputs
- OnStart
- Fires when countdown is started.
- OnFinish
- Fires when countdown is finished successfully.
- OnStop
- Fires when countdown is stoped by stop input.
