Point worldtext: Difference between revisions
Jump to navigation
Jump to search
Note: Text, size and color can be edited real time via AddOutput, making this entity very flexible and useful.
Note:Might not work, use
(added image) |
(Added font keyvalue for p2ce) |
||
Line 15: | Line 15: | ||
{{KV|Text Size (textsize)|float|Size of the text.}} | {{KV|Text Size (textsize)|float|Size of the text.}} | ||
{{KV|Color|Color255|Color of the text.}} | {{KV|Color|Color255|Color of the text.}} | ||
{{KV|Font|material|Path to the font material sheet|only={{P2CE}}}} | |||
== Flags == | == Flags == |
Revision as of 07:56, 28 July 2020
point_worldtext
is a point entity available in Counter-Strike: Global Offensive.
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.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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:
Flags
- 1: Start Disabled
Inputs
point_worldtext:
- Enable
- Start displaying the message text.
- Disable
- Stop displaying the message text.
- SetMessage <string >
- Set the message text.

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.