Point message: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:


==Entity Description==
==Entity Description==
[[Image:{{PAGENAME}}.png|left]]An entity that displays a text message in the world, at its origin.{{clr}}
[[Image:{{PAGENAME}}.png|left]]An entity that displays a text message in the world, at its origin.
 
* See also [[game_text]] - A similar entity that displays a custom message directly on the player screen.
==Availability==
{{clr}}
{{in game|point}} {{game-base}}
{{in code|class=class_c_message_entity.html CMessageEntity|file=message__entity_8cpp-source.html message_entity.cpp}}
{{in code|class=class_c_message_entity.html CMessageEntity|file=message__entity_8cpp-source.html message_entity.cpp}}


Line 32: Line 31:
==Outputs==
==Outputs==
*{{o Targetname}}
*{{o Targetname}}
==See Also==
* [[game_text]] - A similar entity that displays a custom message directly on the player screen.

Revision as of 15:46, 12 April 2008

Template:Wrongtitle Template:Base point

Entity Description

Point message.png

An entity that displays a text message in the world, at its origin.

  • See also game_text - A similar entity that displays a custom message directly on the player screen.

Template:In code

Keyvalues

<string> Message to show at this point
  • radius
<integer> Distance the player must be within to see this message.
  • developeronly
<boolean> If set, this message will only be visible when developer mode is on.

Flags

  • 1 : Start Disabled

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • Enable
Start displaying the message text, if the player is within the message radius.
  • Disable
Stop displaying the message text.

Outputs