env_hudhint
env_hudhint
is a point entity available in all Source games.
It is used to control the display of HUD hints, which show the player what key is bound to a particular command.
env_hudhint | |
---|---|
Type | Point entity |
Engine | Source |
Availability | In all games |
class hierarchy |
---|
CEnvHudHint |
Note:In Left 4 Dead and later, the message will only show to the !activator unless it's singleplayer.
Note:In Garry's Mod env_hudhint is removed.
Flags
- [
1
] : All Players (removed since )
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:Entering raw text will not allow the message to be translated between user languages.
Note:In 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.
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
ShowHudHint
- Shows the hint message.
HideHudHint
- Hides the hint message.
See also
env_message
- A similar entity that displays other predefined messages on the screen.env_instructor_hint
- Another similar entity used in Left 4 Dead 2 and newer games.