Arma 3 Scripting

Function in Arrays

BIS_fnc_arrayFindDeep

Also available as Markdown and JSON, or read the original wiki page.

Description

Searches an array for a specific value and returns its index.

Syntax

[array,value] call BIS_fnc_arrayFindDeep

Parameters:

Returns: Array - returns array with index of found element, if it was not found it returns -1

Examples

Example 1

[[1,2,3,4,5], 3] call BIS_fnc_arrayFindDeep;//Returns [2]

See also

BIS_fnc_addToPairs · find · select · BIS_fnc_removeIndex