# Clear Alliance
Grammar — Clear alliance for sourcePlayer towards player targetPlayer
Flags —Action
|Internal
# Arguments
int
— Source Playerint
— Target Player
Returns — void
void libNtve_gf_ClearAlliance(
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:3681
// Implementation
if ((lp_sourcePlayer != lp_targetPlayer)) {
libNtve_gf_ClearAlliance(lp_sourcePlayer, lp_targetPlayer);
autoC4A67CFA_val = lp_alliance;
if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_Ally) {
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3108
// Implementation
if ((lp_sourcePlayer != lp_targetPlayer)) {
libNtve_gf_ClearAlliance(lp_sourcePlayer, lp_targetPlayer);
autoC4A67CFA_val = lp_alliance;
if (autoC4A67CFA_val == libNtve_ge_AllianceSetting_Ally) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:8423
// Implementation
if ((lp_sourcePlayer != lp_targetPlayer)) {
libNtve_gf_ClearAlliance(lp_sourcePlayer, lp_targetPlayer);
libCOMI_gf_SetAllianceAspectCoop(lp_sourcePlayer, c_allianceIdVision, lp_targetPlayer, false);
auto9570F556_val = lp_alliance;