Arma 3 Scripting

flatten

  • Arma 3 v2.02

Command · Markdown · JSON · original wiki page

Description

Flattens an array.

Syntax

flatten array

Parameters:

Returns: Array of Anything - flattened array

Examples

Example 1

flatten [1, [2], [[3]], [[[4]]]]; // returns [1, 2, 3, 4]

Example 2

flatten getUnitLoadout player;

See also

arrayIntersect