summaryrefslogtreecommitdiffstats
path: root/Client/Functions/Client_ReplaceArray.sqf
blob: b05136ce97e91087c37ee338709c0c7ac3ab4dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Private ['_array','_indexExcluded','_newArray','_z'];
_array = _this select 0;
_indexExcluded = _this select 1;

_newArray = [];
for [{_z = 0},{_z < count(_array)},{_z = _z + 1}] do {
	if (_z != _indexExcluded) then {
		_newArray = _newArray + [_array select _z];
	};
};

_newArray