1951 {
1952 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1953 {
1955 }
1956
1957 for (int i = 0; i < pSelection.Count(); ++i)
1958 {
1960 if (pSelection[i] && pSelection[i].
GetName() == pCompName)
1961 {
1962 return i;
1963 }
1964 }
1965
1967 }
const int INDEX_NOT_FOUND
proto int ToLower()
Changes string to lowercase. Returns length.