# Make Ally

Grammar — Make targetPlayer an ally of sourcePlayer
FlagsAction | Internal

# Arguments

  • int — Source Player
  • int — Target Player

Returns — void

void libNtve_gf_MakeAlly(
	int lp_sourcePlayer,
	int lp_targetPlayer,
);

Category: Player / Alliances / Internal

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3684

        autoC4A67CFA_val = lp_alliance;
        if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_Ally) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3687

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3691

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3696

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionAndControl) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3702

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionControlAndSpending) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3111

        autoC4A67CFA_val = lp_alliance;
        if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_Ally) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3114

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
        }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3118

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionAndControl) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdControl, lp_targetPlayer, true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3123

        }
        else if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionControlAndSpending) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdControl, lp_targetPlayer, true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8427

        auto9570F556_val = lp_alliance;
        if (auto9570F556_val == libNtve_ge_AllianceSetting_Ally) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
        }
        else if (auto9570F556_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8430

        }
        else if (auto9570F556_val == libNtve_ge_AllianceSetting_AllyWithSharedVision) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            libCOMI_gf_SetAllianceAspectCoop(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8434

        }
        else if (auto9570F556_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            libCOMI_gf_SetAllianceAspectCoop(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8439

        }
        else if (auto9570F556_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionAndControl) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            libCOMI_gf_SetAllianceAspectCoop(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:8445

        }
        else if (auto9570F556_val == libNtve_ge_AllianceSetting_AllyWithSharedVisionControlAndSpending) {
            libNtve_gf_MakeAlly(lp_sourcePlayer, lp_targetPlayer);
            libCOMI_gf_SetAllianceAspectCoop(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, true);
            PlayerSetAlliance(lp_sourcePlayer, c_allianceIdPushable, lp_targetPlayer, true);