text: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=") |
||
Line 24: | Line 24: | ||
|p21= location: [[Location]] |PARAMETER1= | |p21= location: [[Location]] |PARAMETER1= | ||
| r2= | |r2=(.*)|RETURNVALUE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 20:12, 24 September 2020
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:
- LocationsStrings
Syntax
- Syntax:
- text string
- Parameters:
- string: String
- Return Value:
- Structured Text
Alternative Syntax
- Syntax:
- text location
- Parameters:
- location: Location
- Return Value:
- (.*)
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