point_message
![]() |
---|
CMessageEntity defined in ![]() message_entity.cpp
|
point_message
is a point entity available in all Source games. It displays a text message in the world, at its origin.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
![Team Fortress 2](/w/images/thumb/8/84/Tf2-16px.png/16px-Tf2-16px.png)
![Counter-Strike: Global Offensive](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- Entity Message
(message)
<string> - Message to show at this point.
Warning:Never use quotation marks in the message. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
- Show message radius
(radius)
<integer> - Distance the player must be within to see this message.
- Developer Only?
(developeronly)
<boolean> - If set, this message will only be visible when developer mode is on.
Flags
- [
1
] : Start Disabled
Inputs
Enable
- Start displaying the message text, if the player is within the message radius.
Disable
- Stop displaying the message text.
See also
- game_text - Displays a custom message directly on the player screen.
- game_text_tf -
Displays a custom HUD message with icons on a specified team's screen.
- point_worldtext -
A similar entity that displays a custom message in the world with far more flexibility.
- training_annotation -
A similar entity that points to a specified location in the world.
- env_hudhint - Displays a custom HUD message. Commonly used to show key-binds.
- env_message - Displays a pre-defined message on the players screen.