# AIAnyAllyNeedsDefending
Flags —
Native
# Arguments
int
— playerwave
— w
Returns — bool
native bool AIAnyAllyNeedsDefending(int player, wave w);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:148
goAttack = true;
}
else if (AIAnyAllyNeedsDefending(player, AIWaveGet(player, c_waveMain))) {
goAttack = true;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:133
AIDefendSelfWithWave(player, w);
}
else if (AIAnyAllyNeedsDefending(player, w)) {
AIDefendAllyWithWave(player, w);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:168
return;
}
else if (AIAnyAllyNeedsDefending(player, w)) {
AIDefendAllyWithWave(player, w);
return;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:213
return;
}
else if (AIAnyAllyNeedsDefending(player, w)) {
AIDefendAllyWithWave(player, w);
return;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:306
return;
}
else if (AIAnyAllyNeedsDefending(player, w)) {
AIDefendAllyWithWave(player, w);
return;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:376
}
if (AIAnyAllyNeedsDefending(player, w)) {
return true;
}
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:148
goAttack = true;
}
else if (AIAnyAllyNeedsDefending(player, AIWaveGet(player, c_waveMain))) {
goAttack = true;
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:455
fixed defenseEval = 0;
if (AIAnyAllyNeedsDefending(player, w)) {
return true;
}