FScriptSetHelper::GetMaxIndex

Returns the (non-inclusive) maximum index of elements in the set.