set: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.75|= Game version | |||
____________________________________________________________________________________________ | |||
| Format of element is [index, value]. Changes an element of given array. If element does not exist, [[resize]] index+1 is called to create it. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | array '''set''' element |= Syntax | ||
|p1= array: [[Array]] |= Parameter 1 | |||
|p2= element: [[Array]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>arrayOne set [0, "Hello"]</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|SET]] | |||
[[Category:Scripting Commands OFP 1.96|SET]] | |||
[[Category:Scripting Commands ArmA|SET]] | |||
Revision as of 23:03, 1 August 2006
Description
- Description:
- Format of element is [index, value]. Changes an element of given array. If element does not exist, resize index+1 is called to create it.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
arrayOne set [0, "Hello"]
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