Env hudhint

From Valve Developer Community
Revision as of 04:22, 20 July 2009 by Fitzroy doll (talk | contribs) (→‎Keyvalues: No, the # char is not needed.)
Jump to navigation Jump to search

Template:Base point It is an entity to control the display of HUD hints, which show the player what key is bound to a particular command.

See also

  • env_message - A similar entity that displays other predefined messages on the screen.

Keyvalues

Hint Text (localized) <string>
This should be match a HUD hint entry in hl2\resource\valve_english.txt or its localized equivalent. Example: entering "Valve_Hint_Zoom" will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
Warning.pngWarning:If an unlocalized string (ex. "%+zoom% ZOOM VIEW" instead of "Valve_Hint_Zoom") is typed directly in editor, Hammer will become confused the next time the VMF is loaded and freeze!
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

ShowHudHint
HideHudHint (in all games since Half-Life 2: Episode One)
Show/hide the hint message.


Outputs

Template:Wrongtitle