# Remove Unit From All Waves And Set Home
Grammar — Remove unit from all waves and set home to home|Point.
Flags —Native
|Action
Removes a unit from any waves it is in and sets its home point.
# Arguments
unit
— Unitpoint
— Home
Returns — void
native void AIRemoveUnitFromAnyWavesAndSetHome(
unit u,
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/liberty.sc2campaign
// L3940
AIRemoveUnitFromAnyWavesAndSetHome(autoDC7CDD91_var, PointFromId(281))
// L3947
AIRemoveUnitFromAnyWavesAndSetHome(auto23B6BB2B_var, PointFromId(283))
// L3940
AIRemoveUnitFromAnyWavesAndSetHome(autoDC7CDD91_var, PointFromId(281))
// L3947
AIRemoveUnitFromAnyWavesAndSetHome(auto23B6BB2B_var, PointFromId(283))
// L2633
AIRemoveUnitFromAnyWavesAndSetHome(gv_zagara, PointFromId(3))
// L8316
AIRemoveUnitFromAnyWavesAndSetHome(EventUnit(), PointFromId(652))
// L2633
AIRemoveUnitFromAnyWavesAndSetHome(gv_zagara, PointFromId(3))
// L8316
AIRemoveUnitFromAnyWavesAndSetHome(EventUnit(), PointFromId(652))
// L474
AIRemoveUnitFromAnyWavesAndSetHome(auto2439952A_var, PlayerStartLocation(UnitGetOwner(auto2439952A_var)))
// L474
AIRemoveUnitFromAnyWavesAndSetHome(auto2439952A_var, PlayerStartLocation(UnitGetOwner(auto2439952A_var)))