point_worldtext

From Valve Developer Community
Revision as of 07:56, 28 July 2020 by Tewan (talk | contribs) (Added font keyvalue for p2ce)
Jump to navigation Jump to search

point_worldtext is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Example text generated by two point_worldtext entities

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

Usage

point_worldtext displays a specified text message in a set position in the world. It can be of any size and color, but the text outline cannot be changed. You can change the text message in-game by firing AddOutput with the parameter "message" and then the message you want to display. One downside of this text type is that it's stationary in the world and it is not part of the HUD, so you can't ensure that all players see it at all times. If you want to display important information that the player(s) must be constantly aware of, then it is better to use a game_text.

Note.pngNote: Text, size and color can be edited real time via AddOutput, making this entity very flexible and useful.

Keyvalues

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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Text Options:
Entity Message (message) ([todo internal name (i)]) <string>
Text that should be displayed.
Text Size (textsize) ([todo internal name (i)]) <float>
Size of the text.
Color ([todo internal name (i)]) <color255>
Color of the text.
Font ([todo internal name (i)]) <material> (only in Portal 2: Community Edition)
Path to the font material sheet

Flags

  • 1: Start Disabled

Inputs

point_worldtext:
Enable
Start displaying the message text.
Disable
Stop displaying the message text.
SetMessage <stringRedirectInput/string>
Set the message text.
Note.pngNote:Might not work, use AddOutput Message <string> instead.

Outputs

See also

  • point_message - A similar entity which displays a small custom message at a specific position in the game world.