# Make Ally
Grammar — Make targetPlayer an ally of sourcePlayer
Flags —Action
|Internal
# Arguments
int
— Source Playerint
— Target Player
Returns — void
void libNtve_gf_MakeAlly(
int lp_sourcePlayer,
int lp_targetPlayer,
);
# Related
Category: Player / Alliances / Internal
- Clear Alliance —
void
— libNtve_gf_ClearAlliance - Make Ally —
void
— libNtve_gf_MakeAlly
# Examples
mods/core.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);