Point message: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Bug:Does not function in multiplayer. In
Bug:Does not function in multiplayer. In  and
 and  , point_worldtext can be used as an alternative.  [todo tested in ?]
, point_worldtext can be used as an alternative.  [todo tested in ?]
		
	
| m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) | m (Cleanup) | ||
| Line 1: | Line 1: | ||
| {{langsp}} | {{langsp}} | ||
| {{CD|CMessageEntity|file1=message_entity.cpp}} | {{CD|CMessageEntity|file1=message_entity.cpp}} | ||
| {{this is a|point entity|name=point_message}} It displays a text message in the world, at its origin. | {{this is a|point entity|name=point_message}} It displays a text message in the world, at its origin. | ||
Revision as of 02:14, 1 July 2024
|  Class hierarchy | 
|---|
| CMessageEntity | 
|  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.
 Source games. It displays a text message in the world, at its origin.
 Bug:Does not function in multiplayer. In
Bug:Does not function in multiplayer. In  and
 and  , point_worldtext can be used as an alternative.  [todo tested in ?]
, point_worldtext can be used as an alternative.  [todo tested in ?]
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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. 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
- Start Disabled : [1]
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. 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. 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. 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.



























