# AIWaveSetDeleteWhenEmpty
Flags —
Native
# Arguments
wave
— waveRefbool
— turnOnDeleteWhenEmpty
Returns — void
native void AIWaveSetDeleteWhenEmpty(
wave waveRef,
bool turnOnDeleteWhenEmpty,
);
# Related
Category: Unclassified
# Examples
mods/liberty.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:121
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
AIWaveSetDeleteWhenEmpty(w, true);
}
return;
mods/swarm.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:127
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
AIWaveSetDeleteWhenEmpty(w, true);
}
return;
mods/void.sc2mod — base.sc2data/TriggerLibs/Zerg/Zerg.galaxy:133
AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
AIWaveAddUnitPriority(w, u, c_prioWavePeon);
AIWaveSetDeleteWhenEmpty(w, true);
}
return;