From c055d44dcdb87e8db49fb23e632fc086aa44cce6 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:53:22 +0300 Subject: init --- Client/Functions/Client_ReplaceArray.sqf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Client/Functions/Client_ReplaceArray.sqf (limited to 'Client/Functions/Client_ReplaceArray.sqf') diff --git a/Client/Functions/Client_ReplaceArray.sqf b/Client/Functions/Client_ReplaceArray.sqf new file mode 100644 index 0000000..b05136c --- /dev/null +++ b/Client/Functions/Client_ReplaceArray.sqf @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.3.1