# AIWaveCurrentLeader

FlagsNative

# Arguments

  • wave — w

Returns — unit

native unit AIWaveCurrentLeader(wave w);

Category: Unclassified

# Examples

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

    }

    leader = AIWaveCurrentLeader(w);
    if (leader == c_nullUnit) {
        return;

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

    }

    leader = AIWaveCurrentLeader(w);
    if (leader == c_nullUnit) {
        AISetAttackState(player, e_attackState_Idle);

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

    }

    leader = AIWaveCurrentLeader(w);
    if (leader == c_nullUnit) {
        return;

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

    }

    leader = AIWaveCurrentLeader(w);
    if (leader == c_nullUnit) {
        AISetAttackState(player, e_attackState_Idle);