Skip to main content

game_text

game_text icon
Point entity

A game_text shows text on the HUD when you trigger it, for the player who started the chain of triggers or for every player. The text fades in, stays for its Hold Time and fades out.

The three text effects: Fade In/Out fades the whole text, Credits fades it with letters flickering in Color2, Scan Out writes it one letter at a time

The three text effects

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity shows the text. See Common keys.

Message Textmessage

Sets the text shown on the HUD.

Xx

Sets where the text is across the screen, from 0 for the left edge up to 1 for the right edge, and -1 centers it.

If you leave this key empty, it is 0 and the text is at the left edge.

Default -1
Yy

Sets where the text is down the screen, from 0 for the top up to 1 for the bottom, and -1 centers it.

If you leave this key empty, it is 0 and the text is at the top.

Default -1
Text Effecteffect

Picks how the text appears and goes away.

  • Fade In/Out (0) - The whole text fades in and out
  • Credits (1) - The text flashes in like the credits of Half-Life
  • Scan Out (2) - The text is written one letter at a time, and each letter flashes in Color2 for the Scan time before it turns Color1
Default Fade In/Out (0)
Color1color

Sets the color of the text, as red, green and blue from 0 up to 255.

If you leave this key empty, the text is black, which doesn't show.

Default 100 100 100
Color2color2

Sets the color each letter flashes in with the effect "Scan Out".

If you leave this key empty, it is black, so no highlight shows.

Default 240 110 0
Fade in Timefadein

Sets how many seconds the text takes to fade in, and with "Scan Out", how many seconds each letter takes.

If you leave this key empty, it is 0 and the text appears at once.

Default 1.5
Fade Out Timefadeout

Sets how many seconds the text takes to fade out after its Hold Time.

If you leave this key empty, it is 0 and the text goes at once.

Default 0.5
Hold Timeholdtime

Sets how many seconds the text stays on the screen after it has faded in.

If you leave this key empty, it is 0 and the text doesn't stay.

Default 1.2
Scan timefxtime

With "Scan Out", sets how many seconds each letter shows in Color2 before it turns Color1.

If you leave this key empty, it is 0 and no highlight shows.

Default 0.25
Text Channelchannel

Sets the channel the text uses, so a new text on the same channel replaces the one shown there, while texts on different channels show at the same time.

  • Channel 1 (1)
  • Channel 2 (2)
  • Channel 3 (3)
  • Channel 4 (4)

If you leave this key empty, it is 0, which works like Channel 4.

Default Channel 1 (1)
Mastermaster

Names a master, and while the master is off, triggering the entity does nothing.

Flags​

1All Players

Every player sees the text. Without this flag, only the player who triggered it does

Notes​

  • It fires no target

See also​