# Remove Unit Group From All Waves And Set Home
Grammar — Remove group|Unit Group from all waves and set home to home|Point.
Flags —Native
|Action
Removes a group of units from any waves they are in and sets their home point.
# Arguments
unitgroup
— Grouppoint
— Home
Returns — void
native void AIRemoveGroupFromAnyWavesAndSetHome(
unitgroup ug,
point home,
);
# Related
Category: AI / MiscCampaign / Actions
- [F] —
void
— Pause AI Time — ( AITimePause ) - [F] —
void
— Start Campaign AI For All Players — ( CampaignInitAI ) - [F] —
void
— Start Campaign AI For Player — ( AICampaignStart ) - [F] —
void
— Global Suicide — ( AIGlobalSuicide ) - [F] —
void
— Enable/Disable Script Control For Unit — ( AISetUnitScriptControlled ) - [F] —
void
— Enable/Disable Script Control For Unit Group — ( AISetGroupScriptControlled ) - [F] —
void
— Enable/Disable Wave Use For Unit — ( AISetUnitNotUsableInWaves ) - [F] —
void
— Enable/Disable Wave Use For Unit Group — ( AISetGroupNotUsableInWaves ) - [F] —
void
— Enable/Disable Suicide For Unit — ( AISetUnitSuicide ) - [F] —
void
— Enable/Disable Suicide For Unit Group — ( AISetGroupSuicide ) - [F] —
void
— Remove Unit From All Waves — ( AIRemoveUnitFromAnyWaves ) - [F] —
void
— Remove Unit Group From All Waves — ( AIRemoveGroupFromAnyWaves ) - [F] —
void
— Remove Unit From All Waves And Set Home — ( AIRemoveUnitFromAnyWavesAndSetHome ) - [F] —
void
— Remove Unit Group From All Waves And Set Home — ( AIRemoveGroupFromAnyWavesAndSetHome ) - [F] —
void
— Init Campaign Towns — ( AIInitCampaignTowns ) - [F] —
void
— Init Campaign Harvesting — ( AIInitCampaignHarvest ) - [F] —
void
— Issue AI Order — ( libNtve_gf_AICast )
# Examples
# campaigns/void.sc2campaign
// L704
AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits))
// L732
AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits))
// L704
AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits))
// L732
AIRemoveGroupFromAnyWavesAndSetHome(lv_attackWaveUnits, UnitGroupCenterOfGroup(lv_attackWaveUnits))
// L2573
AIRemoveGroupFromAnyWavesAndSetHome(lv_escortGroup, PointFromId(666))
// L2573
AIRemoveGroupFromAnyWavesAndSetHome(lv_escortGroup, PointFromId(666))