Warning: file_put_contents(/ff_86322220437cb19a07a9459152e16ee7d28508d7efe6d7f0.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
deleteRange - OFPEC Scripting Command Reference | OFPEC The Editing Center

arrayName deleteRange [from, count]

Operand types

arrayName: Array
[from, count]: Array

Type of returned value

Description

Removes a range of array elements from the given array (modifies the original array, just like resize or set).

array: Boolean
from: Number - Array index to start selection from.
count: Number - Number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array.

Used In

Arma3

Example

_arr = [1,2,3,4,5,6];
_arr deleteRange [1,4];
hint str _arr; //[1,6]

Advertisement