Hud timer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{DISPLAYTITLE:hud_timer}}
{{EntityTabs|hud_timer|vtmb = 1|source = 1|main = source}}
{{EntityTabs|hud_timer|vtmb = 1|source = 1|main = source}}
[[Image:Synergy_hud_timer_levelchange.jpg|thumb|right|300px|hud_timer example. '''TimerText''': "LEVEL CHANGE"]]  
[[Image:Synergy_hud_timer_levelchange.jpg|thumb|right|300px|hud_timer example. '''TimerText''': "LEVEL CHANGE"]]  
{{Entity|hud_timer|type=point|game=Synergy}} It displays a countdown timer on every player's [[HUD]] and fires an output once reaching zero.
{{this is a|point|name=hud_timer|game=Synergy}} It displays a countdown timer on every player's [[HUD]] and fires an output once reaching zero.
{{tip|This is the same HUD element used during the "Waiting for Players" event before level transitions.}}
{{tip|This is the same HUD element used during the "Waiting for Players" event before level transitions.}}



Revision as of 11:09, 4 January 2024

Template:EntityTabs

hud_timer example. TimerText: "LEVEL CHANGE"

hud_timer is a point available in Synergy Synergy. It displays a countdown timer on every player's HUD and fires an output once reaching zero.

Tip.pngTip:This is the same HUD element used during the "Waiting for Players" event before level transitions.

Keyvalues

TimerText ([todo internal name (i)]) <string>
Text to display when this timer is visible.
Tip.pngTip:Try to keep the text under ~25 characters, otherwise it may protrude out of the HUD's frame. (ends will not be visible)
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

Inputs

Start <integerRedirectInput/integer>
Start the timer with a specified duration of seconds.
Stop
Stop the timer instantly, without triggering the OnTimer output.
Change <integerRedirectInput/integer>
Update the timer time - value is added to current timer time; allows positive and negative values.


Outputs

OnTimer
Fired when the timer reaches zero.


See also