Ttt game text: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎Keyvalues: Added internal keyvalue names.)
Line 3: Line 3:
== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Players that should receive the message|choices|What player/group of player receives message}}
{{KV|Players that should receive the message|intn=recieve|choices|What player/group of player receives message}}
:* 1 - Activator only
:* 1 - Activator only
:* 2 - All players
:* 2 - All players
Line 9: Line 9:
:* 4 - All except traitors
:* 4 - All except traitors
{{tip| Be smart with these options. You do not want to display a message that will allow people to figure out who traitors are}}
{{tip| Be smart with these options. You do not want to display a message that will allow people to figure out who traitors are}}
{{KV|Message Text|string|The message to be displayed}}
{{KV|Message Text|intn=message|string|The message to be displayed}}
{{KV|Color|RGB|The color of the message}}
{{KV|Color|intn=color|RGB|The color of the message}}


== Inputs ==
== Inputs ==
{{I|Display|Display the message text.}}
{{I|Display|Display the message text.}}

Revision as of 15:17, 25 March 2025

ttt_game_text is a point entity available in Garry's Mod Garry's Mod.This point entity is used to display a game message in the top right corner of the screen where TTT gamemode messages and information normally appear, similar to game_text

Keyvalues

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

Players that should receive the message (recieve) <choices>
What player/group of player receives message
  • 1 - Activator only
  • 2 - All players
  • 3 - Detectives only
  • 4 - All except traitors
Tip.pngTip: Be smart with these options. You do not want to display a message that will allow people to figure out who traitors are
Message Text (message) <string>
The message to be displayed
Color (color) <color255>
The color of the message

Inputs

Display
Display the message text.