indexOf.UnitNamesFile function

Gets the indices of units by their names