CBA_fnc_findTypeOf

Description

Returns the index of the first entry of a given type in an array.

The type argument is either an object or a class name string.

Parameters

0: Array 1: Entry type, can be either Object or class name string (as returned by typeOf)

Example

_index = [["", Player, "test", nil, VARIABLE, nil], player] call CBA_fnc_findTypeOf

Returns

Index of the first entry of the indicated type in the array or -1 if no entry of the type could be found.

Author

joko // Jonas

Close