text: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 11: | Line 10: | ||
|gr3= Structured Text |GROUP3= | |gr3= Structured Text |GROUP3= | ||
| Creates a structured text containing the given plain text if argument is [[String]]. Use [[setAttributes]] to set additional [[Structured_Text#Attributes | attributes]] on the text. If the argument is [[location]], returns location's text value (see Alt Syntax). |DESCRIPTION= | | Creates a structured text containing the given plain text if argument is [[String]]. Use [[setAttributes]] to set additional [[Structured_Text#Attributes | attributes]] on the text. If the argument is [[location]], returns location's text value (see Alt Syntax). |DESCRIPTION= | ||
|'''text''' string |SYNTAX= | |'''text''' string |SYNTAX= | ||
Line 27: | Line 24: | ||
|r2= [[String]] |RETURNVALUE2= | |r2= [[String]] |RETURNVALUE2= | ||
|x1= <code>_stxt2 = [[text]] "Hello world.";</code> |EXAMPLE1= | |x1= <code>_stxt2 = [[text]] "Hello world.";</code> |EXAMPLE1= | ||
Line 35: | Line 31: | ||
|x3= <code>_loc = [[text]] [[nearestLocation]] [<nowiki/>[[position]] [[player]], "NameMarine"]; //"Marina Bay"</code> |EXAMPLE3= | |x3= <code>_loc = [[text]] [[nearestLocation]] [<nowiki/>[[position]] [[player]], "NameMarine"]; //"Marina Bay"</code> |EXAMPLE3= | ||
| [[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]] |SEEALSO= |
Revision as of 03:59, 17 January 2021
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:
- parseTextcomposeTextimagelineBreaksetTextcreateLocationdeleteLocationdrawLocationlocationPositionlocationNullnearestLocationnearestLocationsnearestLocationWithDubbingname
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Locations
- Command Group: Strings
- Command Group: Structured Text
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands