Point worldtext: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (not yet in tf2 main branch)
(vscript branch has been merged)
Line 1: Line 1:
{{csgo point | point_worldtext}}<!--It has been backported to {{tf2|4}}.-->
{{csgo point | point_worldtext}}
{{Note| This entity has also been ported to {{tf2|4}} as of 12/1/2022.}}
 
[[File:Point worldtext csgo example.jpg|thumb|right|Example text generated by two point_worldtext entities]] It is an entity that displays a text message oriented in the world, at its origin.
[[File:Point worldtext csgo example.jpg|thumb|right|Example text generated by two point_worldtext entities]] It is an entity that displays a text message oriented in the world, at its origin.
== Usage ==
== Usage ==

Revision as of 17:27, 1 December 2022

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

Note.pngNote: This entity has also been ported to Team Fortress 2 Team Fortress 2 as of 12/1/2022.
Example text generated by two point_worldtext entities

It is 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.

Tip.pngTip:The texture sheet has a bone icon assigned to the "~" character.
Note.pngNote: Text, size and color can be edited real time via AddOutput, making this entity very flexible and useful.

Keyvalues

Text Options:
Entity Message (message) <string>
Text that should be displayed.
Text Size (textsize) <float>
Size of the text.
Color (color) <color255>
Color of the text.
Font (font) <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.
Icon-Bug.pngBug:Does not work, use AddOutput Message <string> instead.  [todo tested in ?]

Outputs

See also

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