CBA_fnc_findTypeName

Description

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

Parameters

0: Array 1: TypeName, if parameter is a string, that contains a case insensitive typename, it will be used.  Otherwise typename of the variable will be used.

Example

_index = ["OBJECT", ["", Player, "test", nil, VARIABLE, nil]] call CBA_fnc_findTypeName

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