Difference between revisions of "text"

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Creates a structured text containing the given plain text if argument is [[String]] or returns location's text value if argument is [[Location]] (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 image. If the argument is [[location]], returns location's text value (see Alt Syntax)|= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 29: Line 29:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[parseText]], [[composeText]], [[setText]], [[createLocation]], [[deleteLocation]], [[drawLocation]], [[locationPosition]], [[locationNull]], [[nearestLocation]], [[nearestLocations]], [[nearestLocationWithDubbing]], [[name]] |= See also
+
| [[parseText]], [[composeText]], [[image]], [[lineBreak]], [[setText]], [[createLocation]], [[deleteLocation]], [[drawLocation]], [[locationPosition]], [[locationNull]], [[nearestLocation]], [[nearestLocations]], [[nearestLocationWithDubbing]], [[name]] |= See also
  
 
}}
 
}}

Revision as of 20:59, 13 January 2019

Introduced with Armed Assault version1.00
  

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 image. 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

Syntax:
text location
Parameters:
location: Location
Return Value:
String

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

Notes

Bottom Section