Difference between revisions of "text"
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m |
Lou Montana (talk | contribs) m (Text replacement - "|SYNTAX= |p21=" to "|SYNTAX2= |p21=") |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Command|= | + | {{Command|Comments= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | arma | | + | | arma |Game name= |
− | |1.00| | + | |1.00|Game version= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | Creates a structured text containing the given plain text. |= | + | | 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''' | + | |'''text''' string |SYNTAX= |
− | |p1= | + | |p1= string: [[String]] |PARAMETER1= |
− | | [[Structured Text]] |= | + | | [[Structured Text]] |RETURNVALUE= |
+ | |||
+ | | s2= '''text''' location |SYNTAX2= | ||
+ | |||
+ | |p21= location: [[Location]] |PARAMETER1= | ||
+ | |||
+ | | r2= [[String]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | |x1= <code>_stxt2 = [[text]] "Hello world.";</code> |= | + | |x1= <code>_stxt2 = [[text]] "Hello world.";</code> |EXAMPLE1= |
+ | |x2= <code>_townName = [[text]] myTownLocation;</code> |EXAMPLE2= | ||
+ | |x3= <code>_loc = [[text]] [[nearestLocation]] <nowiki>[</nowiki>[[position]] [[player]], "NameMarine"]; //"Marina Bay"</code> |EXAMPLE3= | ||
+ | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | [[parseText]], [[composeText]] |= | + | | [[parseText]], [[composeText]], [[image]], [[lineBreak]], [[setText]], [[createLocation]], [[deleteLocation]], [[drawLocation]], [[locationPosition]], [[locationNull]], [[nearestLocation]], [[nearestLocations]], [[nearestLocationWithDubbing]], [[name]] |SEEALSO= |
}} | }} | ||
Line 37: | Line 46: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
+ | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
+ | [[Category:Command_Group:_Locations|{{uc:{{PAGENAME}}}}]] |
Latest revision as of 03:09, 3 September 2019
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
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).
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
- Multiplayer:
- -
- See also:
- parseTextcomposeTextimagelineBreaksetTextcreateLocationdeleteLocationdrawLocationlocationPositionlocationNullnearestLocationnearestLocationsnearestLocationWithDubbingname
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To
Add New Note | How To