# AIWaveSetDeleteWhenEmpty

FlagsNative

# Arguments

  • wave — waveRef
  • bool — turnOnDeleteWhenEmpty

Returns — void

native void AIWaveSetDeleteWhenEmpty(
	wave waveRef,
	bool turnOnDeleteWhenEmpty,
);

Category: Unclassified

# Examples

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:121

            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);
        }
        return;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:127

            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);
        }
        return;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/Zerg.galaxy:133

            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);
        }
        return;