# AIWaveCurrentLeader
Flags —
Native
# Arguments
wave
— w
Returns — unit
native unit AIWaveCurrentLeader(wave w);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:237
}
leader = AIWaveCurrentLeader(w);
if (leader == c_nullUnit) {
return;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:525
}
leader = AIWaveCurrentLeader(w);
if (leader == c_nullUnit) {
AISetAttackState(player, e_attackState_Idle);
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:326
}
leader = AIWaveCurrentLeader(w);
if (leader == c_nullUnit) {
return;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:615
}
leader = AIWaveCurrentLeader(w);
if (leader == c_nullUnit) {
AISetAttackState(player, e_attackState_Idle);