# AIAnyAllyAttacking
Flags —
Native
# Arguments
int
— player
Returns — bool
native bool AIAnyAllyAttacking(int player);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:145
}
else if (numWhat >= minAlly) {
if (AIAnyAllyAttacking(player)) {
goAttack = true;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:764
// always support allies attacking
if (AIAnyAllyAttacking(player)) {
AISetAttackState(player, e_attackState_Attack);
}
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:145
}
else if (numWhat >= minAlly) {
if (AIAnyAllyAttacking(player)) {
goAttack = true;
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:857
// always support allies attacking
if (AIAnyAllyAttacking(player)) {
AISetAttackState(player, e_attackState_Attack);
}