Arma 3 Scripting

text

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · also in Strings, Structured Text · Markdown · JSON · original wiki page

Description

Creates a structured text containing the given plain text if argument is String. Use setAttributes to set additional attributes on the text. If the argument is location, returns location's text value (see Alt Syntax).

Syntax

Syntax 1

text string

Parameters:

Returns: Structured Text

Syntax 2

text location

Parameters:

Returns: String

Examples

Example 1

_stxt2 = text "Hello world.";

Example 2

_townName = text myTownLocation;

Example 3

_loc = text nearestLocation [position player, "NameMarine"]; //"Marina Bay"

See also

parseText · composeText · image · lineBreak · setText · createLocation · deleteLocation · drawLocation · locationPosition · locationNull · nearestLocation · nearestLocations · nearestLocationWithDubbing · name