Difference between revisions of "text"

From Bohemia Interactive Community
Jump to navigation Jump to search
(altsyntax)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Creates a structured text containing the given plain text. |= Description
+
| 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
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|'''text''' param |= Syntax
+
|'''text''' string |= Syntax
  
|p1= param: [[String]] (or [[Location]] see [[text location]]) |= Parameter 1
+
|p1= string: [[String]] |= Parameter 1
  
 
| [[Structured Text]] |= Return value
 
| [[Structured Text]] |= Return value
 +
 +
| s2= '''text''' location |= Syntax
 +
 +
|p21= location: [[Location]] |= Parameter 1
 +
 +
| r2= [[String]] |= Return value
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
 
|x1= <code>_stxt2 = [[text]] "Hello world.";</code> |= Example 1
 
|x1= <code>_stxt2 = [[text]] "Hello world.";</code> |= Example 1
 +
|x2= <code>_townName = [[text]] myTownLocation;</code> |= Example 2
 +
|x3= <code>_loc = [[text]] [[nearestLocation]] <nowiki>[</nowiki>[[position]] [[player]], "NameMarine"]; //"Marina Bay"</code> |= Example 3
 +
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[parseText]], [[composeText]] |= See also
+
| [[parseText]], [[composeText]], [[setText]], [[createLocation]], [[deleteLocation]], [[drawLocation]], [[locationPosition]], [[locationNull]], [[nearestLocation]], [[nearestLocations]], [[nearestLocationWithDubbing]], [[name location]] |= See also
  
 
}}
 
}}

Revision as of 20:32, 30 January 2017

Introduced with Armed Assault version 1.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 or returns location's text value if argument is Location (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:
parseTextcomposeTextsetTextcreateLocationdeleteLocationdrawLocationlocationPositionlocationNullnearestLocationnearestLocationsnearestLocationWithDubbingname location

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