Point worldtext: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added font keyvalue for p2ce)
(Add font keyvalue internal name and use BaseEntity templates)
Line 1: Line 1:
{{csgo point | point_worldtext}}
{{csgo point | point_worldtext}}
[[File:Point worldtext csgo example.jpg|thumb|right|Example text generated by two point_worldtext entities]]
[[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.
An entity that displays a text message oriented in the world, at its origin.
== Usage ==
== 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]].
'''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]].
Line 8: Line 7:


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV BaseEntity|csgo=1|l4d2=1}}
{{KV Parentname}}
{{KV Angles}}
{{ScrollBox|title=Text Options|}}
{{ScrollBox|title=Text Options|}}
{{KV|Entity Message (message)|string|Text that should be displayed.}}
{{KV|Entity Message|intn=message|string|Text that should be displayed.}}
{{KV|Text Size (textsize)|float|Size of the text.}}
{{KV|Text Size|intn=textsize|float|Size of the text.}}
{{KV|Color|Color255|Color of the text.}}
{{KV|Color|intn=color|Color255|Color of the text.}}
{{KV|Font|material|Path to the font material sheet|only={{P2CE}}}}
{{KV|Font|intn=font|material|Path to the font material sheet|only={{P2CE}}}}


== Flags ==
== Flags ==
Line 21: Line 18:


== Inputs ==
== Inputs ==
{{I Targetname}}
{{I BaseEntity|l4d2=1|portal2=1}}
{{ScrollBox|title=point_worldtext|}}
{{ScrollBox|title=point_worldtext|}}
{{IO|Enable|Start displaying the message text.}}
{{IO|Enable|Start displaying the message text.}}
Line 29: Line 26:


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O BaseEntity}}


== See also ==
== See also ==

Revision as of 11:42, 28 July 2020

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

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.

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