Ttt game text: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{this is a|point|name=ttt_game_text|game=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 {{ent|game_text}} You can set the message to be displayed to: The activator only, all players, detectives only, traitors only, or all except traitors (Be careful with this. You do not want to display a message that will allow people to figure out who traitors are).
{{this is a|point|name=ttt_game_text|game=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 {{ent|game_text}}


== Keyvalues ==
== Keyvalues ==
{{KV|Players that should receive the message|choices|What player/group of player receives message}}
{{KV|Players that should receive the message|choices|What player/group of player receives message}}
:* 1 - Activator only
:* 2 - All players
:* 3 - Detectives only
:* 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}}
{{KV|Message Text|string|The message to be displayed}}
{{KV|Message Text|string|The message to be displayed}}
{{KV|Color|RGB|The color of the message}}
{{KV|Color|RGB|The color of the message}}

Revision as of 08:47, 20 March 2024

ttt_game_text is a point 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

Players that should receive the message ([todo internal name (i)]) <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 ([todo internal name (i)]) <string>
The message to be displayed
Color ([todo internal name (i)]) <color255>
The color of the message


Inputs

Display
Display the message text.