# AIGetNumTeams

FlagsNative

Returns — int

native int AIGetNumTeams();

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:333

        if (!AIHasNearbyOpenExpansion(player)) {
            // no nearby expansion, avoid macro & power builds
            if (AIGetNumTeams() > 2) {
                // FFA game, also avoid rushing
                rushChance      = 0;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:346

                //macroChance   = 0;
            }
        } else if (AIGetNumTeams() > 2) {
            // don't rush in FFA games, prefer power/macro builds
                                                  // AU, VE,  E,  M, MH,  H, HV, VH, CV, CR, CI