function IsMixedBuildingSelectionGroup ( entityList ) {
    var buildings = 0
    var nonBuildings = 0
    for (var i = 0; i < entityList.length; i++) {
        if (IsCustomBuilding(entityList[i])){
            buildings++
        }
        else {
            nonBuildings++
        }
    }
    return (buildings>0 && nonBuildings>0)
}
// Returns whether the selection group contains both buildings and non-building units
Returns whether the selection group contains both buildings and non-building units
Returns whether the selection group contains both buildings and non - building units
function IsMixedBuildingSelectionGroup ( entityList ) {
    var buildings = 0
    var nonBuildings = 0
    for (var i = 0; i < entityList.length; i++) {
        if (IsCustomBuilding(entityList[i])){
            buildings++
        }
        else {
            nonBuildings++
        }
    }
    return (buildings>0 && nonBuildings>0)
}
function IsMixedBuildingSelectionGroup ( entityList ) { var buildings = 0 var nonBuildings = 0 for ( var i = 0 ; i < entityList . length ; i ++ ) { if ( IsCustomBuilding ( entityList [ i ] ) ) { buildings ++ } else { nonBuildings ++ } } return ( buildings > 0 && nonBuildings > 0 ) }
Returns whether the selection group contains both buildings and non-building units
Returns whether the selection group contains both buildings and non - building units