# AIWaveTargetGuardHomeUnit

FlagsNative

# Arguments

  • unit — u

Returns — wavetarget

native wavetarget AIWaveTargetGuardHomeUnit(unit u);

Category: Unclassified

# Examples

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

        else {
            w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);

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

        else {
            w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);

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

        else {
            w = AIWaveCreate(AIWaveInfoCreate(), player, AIWaveTargetGatherDPoint(player, c_townMain));
            AIWaveSetType(w, c_waveStateGuardHome, AIWaveTargetGuardHomeUnit(drop));
            AIWaveAddUnitPriority(w, u, c_prioWavePeon);
            AIWaveSetDeleteWhenEmpty(w, true);