# AIAnyAllyAttacking

FlagsNative

# Arguments

  • int — player

Returns — bool

native bool AIAnyAllyAttacking(int player);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:145

    }
    else if (numWhat >= minAlly) {
        if (AIAnyAllyAttacking(player)) {
            goAttack = true;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:764


            // always support allies attacking
            if (AIAnyAllyAttacking(player)) {
                AISetAttackState(player, e_attackState_Attack);
            }

mods/void.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:145

    }
    else if (numWhat >= minAlly) {
        if (AIAnyAllyAttacking(player)) {
            goAttack = true;
        }

mods/warcoop/warmeleeai.sc2modbase.sc2data/TriggerLibs/MeleeWaveAI.galaxy:857


            // always support allies attacking
            if (AIAnyAllyAttacking(player)) {
                AISetAttackState(player, e_attackState_Attack);
            }