1805 {
1806 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1807 {
1809 }
1810
1811 for (int i = 0; i < pSelection.Count(); ++i)
1812 {
1814 if (pSelection[i] && pSelection[i].
GetName() == pCompName)
1815 {
1816 return i;
1817 }
1818 }
1819
1821 }
const int INDEX_NOT_FOUND
proto int ToLower()
Changes string to lowercase. Returns length.