setAttributes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETATTRIBUTES]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETATTRIBUTES]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETATTRIBUTES]]


| arma |= Game name


<h2 style="color:#000066">'''''text'' setAttributes ''[name1, value1, name2, value2, ...]'''''</h2>
|2.01|= Game version
____________________________________________________________________________________________


| Returns a structured text created by the given structured or plain text by setting attributes to the given values. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| text '''setAttributes''' [name1, value1, name2, value2, ...] |= Syntax


'''text:''' [[String]]
|p1= text: [[String]] |= Parameter 1


'''[name1, value1, name2, value2, ...]:''' [[Array]]
|p2= [name1, value1, name2, value2, ...]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Structured Text]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>txt = img setAttributes ["image", "data\iSoldier.paa"]</pre> |= Example 1
____________________________________________________________________________________________


[[Structured Text]]
|  |= See also


'''Compatibility:'''
}}


Version 2.01 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns a structured text created by the given structured or plain text by setting attributes to the given values.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETATTRIBUTES]]
 
[[Category:Scripting Commands OFP Elite |SETATTRIBUTES]]
'''Example:'''
[[Category:Scripting Commands ArmA|SETATTRIBUTES]]
 
txt = img '''setAttributes''' ["image", "data\iSoldier.paa"]

Revision as of 00:04, 2 August 2006

-wrong parameter ("Arma") defined!-2.01
Hover & click on the images for description

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

Notes

Bottom Section