Lua:SmartTeamMessage

From Fortress Forever Wiki
Jump to navigationJump to search


SmartTeamMessage

Displays one text message for a specified team, and another for the other team(s). You can specify colors for both messages.

Usage

SmartTeamMessage(team, teammessage, otherteammessage)
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorid )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorstring )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorid )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorstring )

Input

  • team(CFFTeam) The team that will see the primary message
  • teammessage(string) message for the selected team
  • otherteammessage(string) message for the other team(s)
  • colorid(int) preset colors. See Lua:Flags#Color
  • colorstring(string) An RGB color string, e.g. "255 255 255"

Type in your own message, or use an entry from resource\FortressForever_english.txt

Output

Returns nothing

Example

SmartTeamMessage(team, "You win!", "You lose, losers.")