set: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
||
Line 47: | Line 47: | ||
[[Category:Scripting Commands OFP 1.96|SET]] | [[Category:Scripting Commands OFP 1.96|SET]] | ||
[[Category:Scripting Commands ArmA|SET]] | [[Category:Scripting Commands ArmA|SET]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]] |
Revision as of 15:11, 10 January 2020
Description
- Description:
- Changes the element at the given (zero-based) index of the array.
If the element does not exist, resize index+1 is called to create it. - Groups:
- Uncategorised
Syntax
- Syntax:
- array set [index, value]
- Parameters:
- array: Array
- [index, value]: Array
- index: Number
- value: Anything
- Return Value:
- Nothing
Examples
- Example 1:
_arrayOne set [0, "Hello"];
- Example 2:
_arrayTwo set [count _arrayTwo, "Bye"];
appends "Bye" as last element to _arrayTwo- Example 3:
_arrayThree set [(count _arrayThree) - 1, 23];
replaces the last element of _arrayTwo with 23
Additional Information
- See also:
- Arrayplus avaluea plus valueba - bresizereverseselectinfindfindIftoArraytoStringforEachcountpushBackpushBackUniqueapplydeleteAtdeleteRangeappendsortparamparamsarrayIntersectsplitStringjoinString
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.75
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Variables