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

arrayName deleteAt index

Operand types

arrayName: Array
index: Number

Type of returned value

Description

Removes array element at the given index and returns removed element (modifies the original array, just like resize or set).

Used In

Arma3

Example

_arr = [1,2,3];
_rem = _arr deleteAt 1;
hint str [_rem, _arr]; //[2,[1,3]]

Advertisement