Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.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