1818 {
1819 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1820 {
1822 }
1823
1824 for (int i = 0; i < pSelection.Count(); ++i)
1825 {
1827 if (pSelection[i] && pSelection[i].
GetName() == pCompName)
1828 {
1829 return i;
1830 }
1831 }
1832
1834 }
const int INDEX_NOT_FOUND
proto int ToLower()
Changes string to lowercase. Returns length.