BIS_fnc_setNestedElement
- Arma 3 v0.50
- First in Arma 2 v1.00
Function · Markdown · JSON · original wiki page
Description
Function to set an item in a nested array using a path. Modifies the array by reference.
Syntax
[array, path, value] call BIS_fnc_setNestedElement
Parameters:
Returns: Boolean - true on success, false on failure
Examples
Example 1
private _array = [[1, 2], [3, 4]];
_bool = [_array, [0, 0], 0] call BIS_fnc_setNestedElement; // _array is now [[0, 2], [3, 4]]
See also
BIS_fnc_findNestedElement · BIS_fnc_findAllNestedElements · BIS_fnc_removeNestedElement · BIS_fnc_returnNestedElement