Lua:AddHudTextToAll

From Fortress Forever Wiki
Jump to navigationJump to search


AddHudTextToAll

Puts a text object on the screens of all players on the server

Usage

AddHudTextToAll(text_id, text, a, b, c, d)

Input

  • text_id(string) the name of this text (so we can remove it later)
  • text(string) The text to display
  • a(integer) x position
  • b(integer) y position
  • c(integer) alignment
  • d(integer) not sure.

Output

returns: nothing

Example

local text_align = 4
local text_x = 40
local text_line1y = 84
AddHudTextToAll( "defender_points_text", "Defenders", text_x, text_line1y, text_align )