This article's documentation is for the "GoldSrc" engine. Click here for more information.

game_text

From Valve Developer Community
Jump to: navigation, search

game_text is a point entity available in all GoldSrc GoldSrc games. This entity displays text on player's screens.

Key Values

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Target:
Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.


Master (master) <targetname>
Name of a master entity.
Message Name (message) <string>
Message to be shown.
X (0 - 1.0 = left to right) (-1 centers) (x) <string>
Horizontal position on the player's screens to draw the text. The value should be between 0 and 1, where 0 is the far left of the screen and 1 is the far right. -1 centers the text.
Y (0 - 1.0 = top to bottom) (-1 centers) (y) <string>
Vertical position on the player's screens to draw the text. The value should be between 0 and 1, where 0 is the top of the screen and 1 is the bottom. -1 centers the text.
Text Effect (effect) <choices>
Text scan effect
# Name Description
0 Fade In/Out The whole text is faded in, and then faded out.
1 Credits
2 Scan Out The text is scanned in letter by letter, and the whole text is then faded out.
Color1 (color) <color255>
The primary color used by all the text effects.
Color2 (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.
Fade in Time (or character scan time) (fadein) <string>
The time it should take for the text to fully fade in.
Fade Out Time (fadeout) <string>
The time it should take for the text to fade out, after the hold time has expired.
Hold Time (holdtime) <string>
The time the text should stay onscreen, after fading in, before it begins to fade out.}
Scan time (scan effect only) (fxtime) <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.
Text Channel (channel) <choices>
You can have up to four individual game_text messages onscreen at once, stored in channels. Select which channel this text should be placed in, which will overwrite any active message already in that channel.
Channel 0 to Channel 4


Flags

All Players : [1]

If this is not set, the message will only show to !activator.