text: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 36: | Line 36: | ||
|r2= [[String]] | |r2= [[String]] | ||
|x1= <code>_stxt2 = | |x1= <code>_stxt2 = text "Hello world.";</code> | ||
|x2= <code>_townName = | |x2= <code>_townName = text myTownLocation;</code> | ||
|x3= <code>_loc = | |x3= <code>_loc = text [[nearestLocation]] [<nowiki/>[[position]] [[player]], "NameMarine"]; //"Marina Bay"</code> | ||
|seealso= [[parseText]] [[composeText]] [[image]] [[lineBreak]] [[setText]] [[createLocation]] [[deleteLocation]] [[drawLocation]] [[locationPosition]] [[locationNull]] [[nearestLocation]] [[nearestLocations]] [[nearestLocationWithDubbing]] [[name]] | |seealso= [[parseText]] [[composeText]] [[image]] [[lineBreak]] [[setText]] [[createLocation]] [[deleteLocation]] [[drawLocation]] [[locationPosition]] [[locationNull]] [[nearestLocation]] [[nearestLocations]] [[nearestLocationWithDubbing]] [[name]] | ||
}} | }} |
Revision as of 11:17, 12 May 2022
Description
- 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).
- Groups:
- LocationsStringsStructured Text
Syntax
- Syntax:
- text string
- Parameters:
- string: String
- Return Value:
- Structured Text
Alternative Syntax
Examples
- Example 1:
_stxt2 = text "Hello world.";
- Example 2:
_townName = text myTownLocation;
- Example 3:
_loc = text nearestLocation [position player, "NameMarine"]; //"Marina Bay"
Additional Information
- See also:
- parseText composeText image lineBreak setText createLocation deleteLocation drawLocation locationPosition locationNull nearestLocation nearestLocations nearestLocationWithDubbing name
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Locations
- Command Group: Strings
- Command Group: Structured Text