1812 {
1813 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1814 {
1816 }
1817
1818 for (int i = 0; i < pSelection.Count(); ++i)
1819 {
1821 if (pSelection[i] && pSelection[i].
GetName() == pCompName)
1822 {
1823 return i;
1824 }
1825 }
1826
1828 }
const int INDEX_NOT_FOUND
proto int ToLower()
Changes string to lowercase. Returns length.