# PlayerBeaconBuildMenuWasFromPlayer

FlagsNative

# Arguments

  • int — inPlayer
  • int — inType

Returns — bool

native bool PlayerBeaconBuildMenuWasFromPlayer(
	int inPlayer,
	int inType,
);

Category: Unclassified

# Examples

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


    // only set the build menu if it wasn't from the player
    if (!PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        currentOpening = AIGetUserInt(player, c_openingBuildType);

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


    // only set the build menu if it wasn't from the player
    if (!PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        currentLateGame = AIGetUserInt(player, c_lateGameBuildType);

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


    // AI communication panel can override lobby builds.
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        // opening overridden
        aicommBuild = AIGetOpeningScriptTypeFromBuildMenu(player);

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

        AISetUserInt(player, c_specificLobbyBuild, e_buildType_Invalid);
    }
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        // late game overridden
        aicommBuild = AIGetLateGameScriptTypeFromBuildMenu(player);

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

    int aicommBuild;

    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        aicommBuild = AIGetOpeningScriptTypeFromBuildMenu(player);
        if (aicommBuild != e_buildType_Invalid && aicommBuild != AIGetUserInt(player, c_openingBuildType)) {

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

    int aicommBuild;

    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        aicommBuild = AIGetLateGameScriptTypeFromBuildMenu(player);
        if (aicommBuild != e_buildType_Invalid && aicommBuild != AIGetUserInt(player, c_lateGameBuildType)) {

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:313


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:451


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:523


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:323


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:483


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:555


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:305


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:437


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:509


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:313


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:451


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:523


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:323


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:483


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:555


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:309


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:447


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:519


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:319


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:484


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:556


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:326


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:486


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:558


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:320


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:465


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuOpening)) {
        return e_buildType_Invalid;
    }

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:537


    // don't use counter logic if we were told to do a specific opening
    if (PlayerBeaconBuildMenuWasFromPlayer(player, c_buildMenuLateGame)) {
        return e_buildType_Invalid;
    }