Point worldtext: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "point_worldtext An entity in CSGO that allows players to put messages in game You can use the addoutput command to send messages directly to the point_worldtext to update it...")
 
No edit summary
Line 4: Line 4:


You can use the addoutput command to send messages directly to the point_worldtext to update it in game.
You can use the addoutput command to send messages directly to the point_worldtext to update it in game.
{{base point|point_worldtext|sprite=1}} It displays text in the world. This text can be defined directly in the Hammer editor.
== Keyvalues ==
{{KV|Message Text|string|Message to display in the world.
:{| class=standard-table
! Literal value || Effect || Description
|-
| 0 || Fade In/Out || The whole text is faded in, and then faded out.
|-
| 1 || Credits || {{todo|Unknown - seems to act like Fade In/Out. Provide description.}}
|-
| 2 || Scan Out || The text is scanned in letter by letter, and the whole text is then faded out.
|}
{{KV|Color1|color255|The primary color used by all the text effects. {{note|The color values seem to be added to the background, so either a bright white background or black text will cause the message to be invisible.}} {{note|This keyvalue will default to black for entities not created in Hammer.}} }}
{{KV|Color2|color255|The scanning color for the letter being scanned if the ''Text Effect'' keyvalue is set to ''Scan Out'' - usually a different shade of Color1.}}
{{KV|Fade in Time (or character scan time)|string|The time it should take for the text to fully fade in.}}
{{KV|Fade Out Time|string|The time it should take for the text to fade out, after the hold time has expired.}}
{{KV|Hold Time|string|The time the text should stay onscreen, after fading in, before it begins to fade out.{{note|This value defaults to zero for entities not created in Hammer.}}}}
{{KV|Scan time (scan effect only)|string|If the 'Text Effect' is set to Scan Out, this is the time it should take to scan out all the letters in the text.}}
{{KV Targetname}}
== Flags ==
*  : start disabled
== Inputs ==
{{I Targetname}}
== Outputs ==
{{O Targetname}}
== See also ==
* [[point_message]] - A similar entity that displays a small custom message at a specific position in the game world.
[[Category:GUI Entities]]

Revision as of 02:30, 10 June 2017

point_worldtext

An entity in CSGO that allows players to put messages in game

You can use the addoutput command to send messages directly to the point_worldtext to update it in game. Template:Base point It displays text in the world. This text can be defined directly in the Hammer editor.


Keyvalues

{{KV|Message Text|string|Message to display in the world.

Literal value Effect Description
0 Fade In/Out The whole text is faded in, and then faded out.
1 Credits
Todo: Unknown - seems to act like Fade In/Out. Provide description.
2 Scan Out The text is scanned in letter by letter, and the whole text is then faded out.
Color1 ([todo internal name (i)]) <color255>
The primary color used by all the text effects.
Note.pngNote:The color values seem to be added to the background, so either a bright white background or black text will cause the message to be invisible.
Note.pngNote:This keyvalue will default to black for entities not created in Hammer.
Color2 ([todo internal name (i)]) <color255>
The scanning color for the letter being scanned if the Text Effect keyvalue is set to Scan Out - usually a different shade of Color1.
Fade in Time (or character scan time) ([todo internal name (i)]) <string>
The time it should take for the text to fully fade in.
Fade Out Time ([todo internal name (i)]) <string>
The time it should take for the text to fade out, after the hold time has expired.
Hold Time ([todo internal name (i)]) <string>
The time the text should stay onscreen, after fading in, before it begins to fade out.
Note.pngNote:This value defaults to zero for entities not created in Hammer.
Scan time (scan effect only) ([todo internal name (i)]) <string>
If the 'Text Effect' is set to Scan Out, this is the time it should take to scan out all the letters in the text.
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

Flags

  • : start disabled

Inputs

Outputs

See also

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