# AIWaveTargetGuardHomeUnit
Flags —
Native
# Arguments
unit
— u
Returns — wavetarget
native wavetarget AIWaveTargetGuardHomeUnit(unit u);
# Related
Category: Unclassified
# Examples
mods/liberty.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);