ShowInfoText
A line in the game’s own info slot under the compass.
The toast the game uses for “You cannot do that now”: a line in the game’s typeface under the compass, for ms
milliseconds, optionally on a dark backing. Lines queue in the HUD; a higher priority goes before the ones waiting.
The server puts its own fight messages there (“You are fighting Hans”), so a mode’s lines share the slot with them.
Syntax
Section titled “Syntax”ShowInfoText(pid, text [, ms, priority, background])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
text |
string | the line |
ms |
number | how long it stays, milliseconds (3000; 0 = the HUD’s own default, up to 60000) (optional) |
priority |
number | 0 .. 255, a higher one is shown first (0) (optional) |
background |
boolean | a dark backing behind the line (false) (optional) |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”ShowInfoText(pid, "Round 3 begins", 4000, 1, true)See also
Section titled “See also”ShowInfoTextForAll · HideInfoText · ShowNotification · GameText · the GameText and HUD group of the index
