Env hudhint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Added infotable)
Line 1: Line 1:
{{langsp}}
{{langsp}}
{{entity|type=e0|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.
{{entity|type=e0|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.
{{infotable
|env_hudhint
|img=[[File:Env hudhint.png]]
|type=e0
|engine=2
|in=0
}}
{{CD|CEnvHudHint}}
{{CD|CEnvHudHint}}
__NOTOC__
__NOTOC__

Revision as of 12:16, 13 October 2023

English (en)中文 (zh)Translate (Translate)

Template:Entity It is used to control the display of HUD hints, which show the player what key is bound to a particular command.

env_hudhint
Env hudhint.png
TypePoint entity
EngineSource Source
AvailabilityIn all games
 
C++ Class hierarchy
CEnvHudHint
CPointEntity
CBaseEntity
Note.pngNote:In Left 4 Dead Left 4 Dead and later, the message will only show to the !activator unless it's singleplayer.
Note.pngNote:In Garry's Mod Garry's Mod env_hudhint is removed.
Hudhint.png

Flags

All Players (removed since Left 4 Dead) : [1]
Show the message to everyone on the server (otherwise show to !activator only)

Keyvalues

Hint Text (localized) (message) <string>
This should be match a HUD hint entry in hl2\resource\valve_english.txt or its localized equivalent. Example: entering "#Valve_Hint_Zoom" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
Warning.pngWarning:Entering raw text will not allow the message to be translated between user languages.
Note.pngNote:In Team Fortress 2 and potentially other games, the % character interacts differently with text. Displaying keybinds found in the resource folder may force any text after the % character to display on a new line.


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
Shows the hint message.
HideHudHint
Hides the hint message.

See Also