List of all CS2D commands/hudtxt2

From Unreal Software English Wiki
Jump to: navigation, search

Display or hide a text on the screen of a certain player (as server only).

Parameters:

   player (1-32):   id of a player 
   id (0-49):       internal text id 
   text (text):     the text you want to display 
   x (0-640):       x position 
   y (0-480):       y position 
   align (-1,0,1):  text alignment
Tip:
just enter the first parameter (id) and leave out all other parameters in order to hide an existing text.

Usage in Lua

You can't use hudtxt with standard (double) quotes (""). You must use single quotes ('').

   parse("hudtxt2 1 49 "Hello!" 320 240 0") -- not working
   parse('hudtxt2 1 49 "Hello!" 320 240 0') -- it will work
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox