Arma 3 Scripting

Command in GUI Control

titleText

Also available as Markdown and JSON, or read the original wiki page.

Description

Displays text across the screen. If used along with cutText two different texts (in different type styles) can be shown at once. The text can be displayed on multiple lines by using "\n" new line characters (see #Example 3).

Syntax

titleText [text, type, speed, showInMap, isStructuredText]

Parameters:

Returns: Nothing

Examples

Example 1

titleText ["Show this text", "PLAIN"];

Example 2

titleText ["Your message", "BLACK", 2];

Example 3

titleText ["line1\nline2\nline3", "PLAIN"];

Example 4

titleText ["<t color='#ff0000' size='5'>RED ALERT!</t><br/>***********", "PLAIN", -1, true, true];

See also

titleFadeOut · cutText · cutObj · allActiveTitleEffects · activeTitleEffectParams

Community notes

DreadedEntity

The third parameter or 'speed', as it is called in the description, refers to the amount of time the message will be shown on-screen. Multiply each number by 10 to get the number of seconds it will be shown. You can even use floats as input, like 0.1, to show a message for only 1 second.

Note: Calculating the time with that method does not include the time it takes to fade in/out, which is about 1 second unless you use numbers lower than 1.

Note: Using anything lower than 0.001 seems to have no effect, or the effect is so little it is negligible.

(A3 1.34.128075)