setAttributes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.01|= Game version | |||
____________________________________________________________________________________________ | |||
| Returns a structured text created by the given structured or plain text by setting attributes to the given values. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | text '''setAttributes''' [name1, value1, name2, value2, ...] |= Syntax | ||
|p1= text: [[String]] |= Parameter 1 | |||
|p2= [name1, value1, name2, value2, ...]: [[Array]] |= Parameter 2 | |||
| [[Structured Text]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>txt = img setAttributes ["image", "data\iSoldier.paa"]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|SETATTRIBUTES]] | |||
[[Category:Scripting Commands OFP Elite |SETATTRIBUTES]] | |||
[[Category:Scripting Commands ArmA|SETATTRIBUTES]] | |||
Revision as of 23:04, 1 August 2006
Description
- Description:
- Returns a structured text created by the given structured or plain text by setting attributes to the given values.
- Groups:
- Uncategorised
Syntax
- Syntax:
- text setAttributes [name1, value1, name2, value2, ...]
- Parameters:
- text: String
- [name1, value1, name2, value2, ...]: Array
- Return Value:
- Structured Text
Examples
- Example 1:
txt = img setAttributes ["image", "data\iSoldier.paa"]
Additional Information
- See also:
- See also needed
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