# Remove Unit
Grammar — Remove u from the game
Flags —Native
|Action
Removes a unit from the game.
# Arguments
unit
— Unit
Returns — void
native void UnitRemove(unit inUnit);
# Related
Category: Unit / Basic
- Unit Show Kill Display —
void
— UnitShowKillDisplay - Unit Can Path To Point —
bool
— UnitPathableToPoint - Unit Can Path To Unit —
bool
— UnitPathableToUnit - Create Units With Default Facing —
void
— libNtve_gf_CreateUnitsWithDefaultFacing - Create Units With Point Facing —
void
— libNtve_gf_CreateUnitsAtPoint2 - Create Units Facing Angle —
unitgroup
— UnitCreate - Create Units Facing Point —
unitgroup
— libNtve_gf_UnitCreateFacingPoint - Last Created Unit —
unit
— UnitLastCreated - Last Created Units —
unitgroup
— UnitLastCreatedGroup - Original Caster Of Unit —
unit
— UnitGetOriginalCaster - Effect That Created Unit —
string
<gamelink::Effect> — UnitGetOriginalEffect - Replace Unit —
void
— libNtve_gf_ReplaceUnit - Last Replaced Unit —
unit
— libNtve_gf_LastReplacedUnit - Change Owner —
void
— UnitSetOwner - Unit Owner Changes —
void
— TriggerAddEventUnitChangeOwner - Old Unit Owner —
int
— EventUnitOwnerOld - New Unit Owner —
int
— EventUnitOwnerNew - Rescue Unit —
void
— libNtve_gf_RescueUnit - Rescue Unit Group —
void
— libNtve_gf_RescueUnit2 - Kill Unit —
void
— UnitKill - Revive Unit —
void
— UnitRevive - Remove Unit —
void
— UnitRemove - Owner Of Unit —
int
— UnitGetOwner - Unit Is Alive —
bool
— UnitIsAlive - Unit Is Valid —
bool
— UnitIsValid - Unit Group Is Dead —
bool
— libNtve_gf_UnitGroupIsDead - Move Unit Instantly —
void
— UnitSetPosition - Make Unit Face Angle —
void
— UnitSetFacing - Make Unit Face Point —
void
— libNtve_gf_MakeUnitFacePoint - Position Of Unit —
point
— UnitGetPosition - Goal Position Of Unit —
point
— UnitGetGoalPosition - Facing Angle Of Unit —
fixed
— UnitGetFacing - Pause/Unpause Unit —
void
— libNtve_gf_PauseUnit - Pause/Unpause All Units —
void
— UnitPauseAll - Sleep/WakeUp Unit —
void
— libNtve_gf_SleepUnit - Show/Hide Unit —
void
— libNtve_gf_ShowHideUnit - Share Vision of Unit —
void
— libNtve_gf_ShareVisionofUnit - Unit Is Paused —
bool
— libNtve_gf_UnitIsPaused - Unit Is Sleepiing —
bool
— libNtve_gf_UnitIsSleepiing - Unit Is Hidden —
bool
— libNtve_gf_UnitIsHidden - Unit Is Visible To Player —
bool
— libNtve_gf_UnitIsVisibleToPlayer - Set Unit Custom Value —
void
— UnitSetCustomValue - Custom Value Of Unit —
fixed
— UnitGetCustomValue - Unit Enters/Leaves Region —
void
— TriggerAddEventUnitRegion - Triggering Region —
region
— EventUnitRegion - Unit Enters/Leaves Point —
void
— TriggerAddEventUnitRangePoint - Unit Enters/Leaves Range Of Unit —
void
— TriggerAddEventUnitRange - Triggering Range Unit —
unit
— EventUnitRangeUnit - Unit In Region —
bool
— libNtve_gf_UnitInRegion - Triggering Unit —
unit
— EventUnit - Load Unit Model —
void
— UnitLoadModel - Unload Unit Model —
void
— UnitUnloadModel - Agent Of Player For Unit —
unit
— UnitAgent - Change Empty Unit Variables In Events —
void
— UnitEventSetNullVariableInvalid - Name of Unit —
text
— UnitGetName - Ideal Harvester Count —
int
— UnitIdealWorkerCount - Current Harvester Count —
int
— UnitCurrentWorkerCount
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:649
for ( ; ( (auto10272E13_ai >= 0 && lv_index <= auto10272E13_ae) || (auto10272E13_ai <= 0 && lv_index >= auto10272E13_ae) ) ; lv_index += auto10272E13_ai ) {
if ((UnitGetType(lv_pickedUnit) == gv_powerupTypeUnitTypes[lv_index])) {
UnitRemove(lv_pickedUnit);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2313
libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStop BeamAttack");
Wait(0.5, c_timeGame);
UnitRemove(lv_beamTarget);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2340
libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStop BeamAttack");
Wait(0.5, c_timeGame);
UnitRemove(lv_beamTarget);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2579
lv_unit = UnitGroupUnit(autoB7804980_g, autoB7804980_u);
UnitGroupRemove(gv_activeBackgroundUnits, lv_unit);
UnitRemove(lv_unit);
}
gv_selectedBackgroundCount = 0;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2926
for ( ; auto3F4C99E6_u <= UnitGroupCount(auto3F4C99E6_g, c_unitCountAll) ; auto3F4C99E6_u += BoolToInt(lv_u == UnitGroupUnit(auto3F4C99E6_g, auto3F4C99E6_u)) ) {
lv_u = UnitGroupUnit(auto3F4C99E6_g, auto3F4C99E6_u);
UnitRemove(lv_u);
}
auto1B6E7E41_g = UnitGroup("SS_PowerupHealth", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2932
for ( ; auto1B6E7E41_u <= UnitGroupCount(auto1B6E7E41_g, c_unitCountAll) ; auto1B6E7E41_u += BoolToInt(lv_u == UnitGroupUnit(auto1B6E7E41_g, auto1B6E7E41_u)) ) {
lv_u = UnitGroupUnit(auto1B6E7E41_g, auto1B6E7E41_u);
UnitRemove(lv_u);
}
autoE3A7849B_g = UnitGroup("SS_PowerupSideMissiles", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2938
for ( ; autoE3A7849B_u <= UnitGroupCount(autoE3A7849B_g, c_unitCountAll) ; autoE3A7849B_u += BoolToInt(lv_u == UnitGroupUnit(autoE3A7849B_g, autoE3A7849B_u)) ) {
lv_u = UnitGroupUnit(autoE3A7849B_g, autoE3A7849B_u);
UnitRemove(lv_u);
}
auto5262DC05_g = UnitGroup("SS_PowerupStrongerMissiles", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2944
for ( ; auto5262DC05_u <= UnitGroupCount(auto5262DC05_g, c_unitCountAll) ; auto5262DC05_u += BoolToInt(lv_u == UnitGroupUnit(auto5262DC05_g, auto5262DC05_u)) ) {
lv_u = UnitGroupUnit(auto5262DC05_g, auto5262DC05_u);
UnitRemove(lv_u);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3017
UnitIssueOrder(lp_powerup, OrderTargetingPoint(AbilityCommand("move", 0), lv_newLoc), c_orderQueueReplace);
Wait(10.0, c_timeGame);
UnitRemove(lp_powerup);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5942
if ((UnitIsAlive(gv_boss) == false)) {
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:641
}
if ((lv_playerHasMercTech == false)) {
UnitRemove(UnitFromId(3245));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1111
TriggerEnable(TriggerGetCurrent(), false);
UnitRemove(UnitFromId(290));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3781
TriggerEnable(gt_PingConvoy, false);
if ((UnitGetType(EventUnitCargo()) == "Marine")) {
UnitRemove(EventUnitCargo());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3788
ObjectiveSetName(gv_objective_SaveColonists, (StringExternal("Param/Value/01B02760") + IntToText(gv_colonistsSaved) + StringExternal("Param/Value/09C44398") + IntToText(gv_colonistsSaveQuota) + StringExternal("Param/Value/38C9869C")));
SoundPlay(SoundLink("Terran_Veterancy", -1), PlayerGroupAll(), 100.0, 0.0);
UnitRemove(EventUnitCargo());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3836
lv_sound = SoundLastPlayed();
Wait(5.0, c_timeGame);
UnitRemove(lv_unit);
SoundStop(lv_sound, true);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3963
auto9B9FDE4D_var = UnitGroupUnitFromEnd(auto9B9FDE4D_g, auto9B9FDE4D_u);
if (auto9B9FDE4D_var == null) { break; }
UnitRemove(auto9B9FDE4D_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:4013
auto37D97D54_var = UnitGroupUnitFromEnd(auto37D97D54_g, auto37D97D54_u);
if (auto37D97D54_var == null) { break; }
UnitRemove(auto37D97D54_var);
}
autoC6E48224_g = UnitGroup("PathingBlocker2x2", c_playerAny, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:4020
autoC6E48224_var = UnitGroupUnitFromEnd(autoC6E48224_g, autoC6E48224_u);
if (autoC6E48224_var == null) { break; }
UnitRemove(autoC6E48224_var);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:4029
auto87D49383_var = UnitGroupUnitFromEnd(auto87D49383_g, auto87D49383_u);
if (auto87D49383_var == null) { break; }
UnitRemove(auto87D49383_var);
}
autoD9E3C06D_g = UnitGroup("PathingBlocker2x2", c_playerAny, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:4036
autoD9E3C06D_var = UnitGroupUnitFromEnd(autoD9E3C06D_g, autoD9E3C06D_u);
if (autoD9E3C06D_var == null) { break; }
UnitRemove(autoD9E3C06D_var);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4708
GameTimeOfDaySet("12:00:00");
libNtve_gf_SetAlliance(gv_pLAYER_03_INFESTED_REFUGEES, gv_pLAYER_02_REFUGEES, libNtve_ge_AllianceSetting_Enemy);
UnitRemove(UnitFromId(459));
gv_briefingCinematicUnits = UnitGroup(null, c_playerAny, null, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto1D795B71_g = gv_briefingCinematicUnits;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4715
auto1D795B71_var = UnitGroupUnitFromEnd(auto1D795B71_g, auto1D795B71_u);
if (auto1D795B71_var == null) { break; }
UnitRemove(auto1D795B71_var);
}
auto256BA00D_g = UnitGroup(null, gv_pLAYER_03_INFESTED_REFUGEES, RegionFromId(5), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:5365
auto8062DE98_var = UnitGroupUnitFromEnd(auto8062DE98_g, auto8062DE98_u);
if (auto8062DE98_var == null) { break; }
UnitRemove(auto8062DE98_var);
}
autoC6A0BB64_g = UnitGroup(null, gv_pLAYER_04_INFESTEDREFUGEES, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:5372
autoC6A0BB64_var = UnitGroupUnitFromEnd(autoC6A0BB64_g, autoC6A0BB64_u);
if (autoC6A0BB64_var == null) { break; }
UnitRemove(autoC6A0BB64_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:5413
auto8AF64AEF_var = UnitGroupUnitFromEnd(auto8AF64AEF_g, auto8AF64AEF_u);
if (auto8AF64AEF_var == null) { break; }
UnitRemove(auto8AF64AEF_var);
}
TriggerExecute(gt_VictoryDropships, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2078
autoFE858403_var = UnitGroupUnitFromEnd(autoFE858403_g, autoFE858403_u);
if (autoFE858403_var == null) { break; }
UnitRemove(autoFE858403_var);
}
autoAA05245A_g = UnitGroup("PathingBlocker2x2", 0, RegionFromId(11), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2085
autoAA05245A_var = UnitGroupUnitFromEnd(autoAA05245A_g, autoAA05245A_u);
if (autoAA05245A_var == null) { break; }
UnitRemove(autoAA05245A_var);
}
TriggerEnable(gt_TerrorFleetBetaDestroyed, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2172
auto61748A2E_var = UnitGroupUnitFromEnd(auto61748A2E_g, auto61748A2E_u);
if (auto61748A2E_var == null) { break; }
UnitRemove(auto61748A2E_var);
}
auto751EF2C3_g = UnitGroup("PathingBlocker2x2", 0, RegionFromId(12), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2179
auto751EF2C3_var = UnitGroupUnitFromEnd(auto751EF2C3_g, auto751EF2C3_u);
if (auto751EF2C3_var == null) { break; }
UnitRemove(auto751EF2C3_var);
}
TriggerEnable(gt_TerrorFleetGammaDestroyed, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2267
auto6FA0985D_var = UnitGroupUnitFromEnd(auto6FA0985D_g, auto6FA0985D_u);
if (auto6FA0985D_var == null) { break; }
UnitRemove(auto6FA0985D_var);
}
auto2EF830BF_g = UnitGroup("PathingBlocker2x2", 0, RegionFromId(8), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2274
auto2EF830BF_var = UnitGroupUnitFromEnd(auto2EF830BF_g, auto2EF830BF_u);
if (auto2EF830BF_var == null) { break; }
UnitRemove(auto2EF830BF_var);
}
TriggerEnable(gt_TerrorFleetOmegaDestroyed, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2663
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3191
auto64289BB3_var = UnitGroupUnitFromEnd(auto64289BB3_g, auto64289BB3_u);
if (auto64289BB3_var == null) { break; }
UnitRemove(auto64289BB3_var);
}
autoBB4126D6_g = UnitGroup("PathingBlocker2x2", 0, RegionFromId(11), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3198
autoBB4126D6_var = UnitGroupUnitFromEnd(autoBB4126D6_g, autoBB4126D6_u);
if (autoBB4126D6_var == null) { break; }
UnitRemove(autoBB4126D6_var);
}
UnitSelect(lv_colonistShip, gv_pLAYER01_USER, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3246
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonistShip), c_animNameDefault, "Land Forward", c_animFlagNonLooping, c_animTimeDefault);
Wait(7.0, c_timeGame);
UnitRemove(lv_colonistShip);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:379
}
if ((lp_cleanUp == true)) {
UnitRemove(gv_infestationVirophageUnit[lp_colonyIndex]);
gv_infestationVirophageUnit[lp_colonyIndex] = null;
CreepModify(RegionGetCenter(lp_area), 10.0, false, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:387
lv_u = UnitGroupUnitFromEnd(autoED4A8D80_g, autoED4A8D80_u);
if (lv_u == null) { break; }
UnitRemove(lv_u);
}
gv_infestationColonyLost[lp_colonyIndex] = false;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1585
lv_colonist = UnitGroupUnitFromEnd(auto04D9FE65_g, auto04D9FE65_u);
if (lv_colonist == null) { break; }
UnitRemove(lv_colonist);
}
UnitSetOwner(lv_colonyStructure, gv_p03_VIROPHAGE, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:3377
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_carrionBirdLocal), c_animNameDefault, "Death", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
Wait(6.666, c_timeGame);
UnitRemove(lv_carrionBirdLocal);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4207
auto912DA5AD_var = UnitGroupUnitFromEnd(auto912DA5AD_g, auto912DA5AD_u);
if (auto912DA5AD_var == null) { break; }
UnitRemove(auto912DA5AD_var);
}
libLbty_gf_OrderWorkerstoGatherNearbyResources(RegionEntireMap(), gv_p01_USER);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4663
autoE0A85E97_var = UnitGroupUnitFromEnd(autoE0A85E97_g, autoE0A85E97_u);
if (autoE0A85E97_var == null) { break; }
UnitRemove(autoE0A85E97_var);
}
UnitPauseAll(false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2425
UnitBehaviorRemove(EventUnit(), "ConjoinedTrainCar", 1);
UnitRemove(EventUnit());
if ((lv_trainIndex > 0)) {
auto49BE1DDE_ae = gv_trainList[lv_trainIndex].lv_lastCar;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2566
if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort) == true)) {
if ((libNtve_gf_UnitInRegion(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, RegionCircle(lv_exitPoint, 1.0)) == true)) {
UnitRemove(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5653
auto6A2B4375_var = UnitGroupUnitFromEnd(auto6A2B4375_g, auto6A2B4375_u);
if (auto6A2B4375_var == null) { break; }
UnitRemove(auto6A2B4375_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5733
auto04DC8B4A_var = UnitGroupUnitFromEnd(auto04DC8B4A_g, auto04DC8B4A_u);
if (auto04DC8B4A_var == null) { break; }
UnitRemove(auto04DC8B4A_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5848
auto78EAE4ED_var = UnitGroupUnitFromEnd(auto78EAE4ED_g, auto78EAE4ED_u);
if (auto78EAE4ED_var == null) { break; }
UnitRemove(auto78EAE4ED_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5895
auto657FAB03_var = UnitGroupUnitFromEnd(auto657FAB03_g, auto657FAB03_u);
if (auto657FAB03_var == null) { break; }
UnitRemove(auto657FAB03_var);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:302
if ((lp_remove == true)) {
UnitRemove(lp_scrap);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:346
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, "Signal Up", "Doodad", "ScopeContains PortZionScrapElevatorLeft");
Wait(1.75, c_timeGame);
UnitRemove(lv_elevatorBlocker);
ActorSend(lv_actorRegion, "Destroy");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1039
libNtve_gf_ShareVisionofUnit(UnitFromId(1056), false, gv_p01_USER);
Wait(17.0, c_timeGame);
UnitRemove(UnitFromId(1056));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:2033
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:2194
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:2412
lv_i = 1;
for ( ; ( (auto9501A72F_ai >= 0 && lv_i <= auto9501A72F_ae) || (auto9501A72F_ai < 0 && lv_i >= auto9501A72F_ae) ) ; lv_i += auto9501A72F_ai ) {
UnitRemove(gv_initialElevatorBlockers[lv_i]);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:3360
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:5276
auto51EE252E_var = UnitGroupUnitFromEnd(auto51EE252E_g, auto51EE252E_u);
if (auto51EE252E_var == null) { break; }
UnitRemove(auto51EE252E_var);
}
TriggerEnable(gt_BriefingSalvage, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:5578
if (auto05A7AB37_var == null) { break; }
if ((libNtve_gf_UnitIsVisibleToPlayer(auto05A7AB37_var, 1) == false) && (UnitGetType(auto05A7AB37_var) == "SCV")) {
UnitRemove(auto05A7AB37_var);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:5663
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
UnitRemove(UnitFromId(928));
UnitRemove(UnitFromId(1026));
UnitPauseAll(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:439
libNtve_gf_MakeUnitInvulnerable(autoD9E2A2C7_var, true);
}
UnitRemove(UnitFromId(1034));
UnitRemove(UnitFromId(1035));
UnitSetScale(UnitFromId(4), 115.0, 115.0, 115.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:440
}
UnitRemove(UnitFromId(1034));
UnitRemove(UnitFromId(1035));
UnitSetScale(UnitFromId(4), 115.0, 115.0, 115.0);
gv_odin = UnitFromId(2);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5279
}
UnitRemove(UnitFromId(1132));
UnitSetOwner(gv_odin, gv_p03_DOMINION_WAREHOUSE, true);
TriggerExecute(gt_BriefingScene03OdinBuild, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5538
Wait(2.0, c_timeGame);
SoundPlay(SoundLink("Medivac_Load", 0), PlayerGroupAll(), 100.0, 0.0);
UnitRemove(UnitFromId(4));
UnitSetOwner(gv_odin, gv_p02_TYCHUS, true);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5652
autoBE805516_var = UnitGroupUnitFromEnd(autoBE805516_g, autoBE805516_u);
if (autoBE805516_var == null) { break; }
UnitRemove(autoBE805516_var);
}
UnitRemove(UnitFromId(4));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5654
UnitRemove(autoBE805516_var);
}
UnitRemove(UnitFromId(4));
libNtve_gf_MakeUnitInvulnerable(gv_odin, false);
libNtve_gf_ShowHideUnit(gv_odin, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5662
UnitSetFacing(gv_odin, PointGetFacing(PointFromId(650)), 0.0);
UnitIssueOrder(UnitFromId(2), Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
UnitRemove(UnitFromId(430));
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Refinery", 0, gv_p01_USER, PointFromId(2249));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropResources, 2400.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5665
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Refinery", 0, gv_p01_USER, PointFromId(2249));
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropResources, 2400.0);
UnitRemove(UnitFromId(341));
libNtve_gf_ShowHideUnit(UnitFromId(935), true);
autoD3CF4B0C_g = UnitGroup(null, gv_p01_USER, null, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5757
UnitIssueOrder(gv_odin, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
Wait(3.0, c_timeGame);
UnitRemove(UnitFromId(341));
libNtve_gf_ShowHideUnit(UnitFromId(935), true);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5835
autoF263842C_var = UnitGroupUnitFromEnd(autoF263842C_g, autoF263842C_u);
if (autoF263842C_var == null) { break; }
UnitRemove(autoF263842C_var);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1402
}
UnitRemove(EventUnitCargo());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1949
gv_civilianVehicleCounter -= 1;
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1981
gv_civilianVehicleCounter -= 1;
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2013
gv_civilianVehicleCounter -= 1;
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2044
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2075
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2456
auto04317FC0_var = UnitGroupUnitFromEnd(auto04317FC0_g, auto04317FC0_u);
if (auto04317FC0_var == null) { break; }
UnitRemove(auto04317FC0_var);
}
autoF784DCF0_g = UnitGroup(null, gv_p02_DOMINION_INFANTRY, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2895
UnitSetHeight(lv_tychusMissile, 16.0, 2.5);
Wait(4.0, c_timeGame);
UnitRemove(lv_tychusMissile);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:3484
PingDestroy(gv_pingSector1Tower);
VisRevealerDestroy(gv_sector1BeaconRevealer);
UnitRemove(UnitFromId(808));
UnitSetOwner(UnitFromId(5), 0, true);
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:3544
PingDestroy(gv_pingSector2Tower);
VisRevealerDestroy(gv_sector2BeaconRevealer);
UnitRemove(UnitFromId(806));
UnitSetOwner(UnitFromId(358), 0, true);
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1453
}
gv_statWeaponsCollected += 1;
UnitRemove(EventUnit());
SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1529
}
gv_statWeaponsCollected += 1;
UnitRemove(EventUnit());
SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1605
}
gv_statWeaponsCollected += 1;
UnitRemove(EventUnit());
SoundPlay(SoundLink("TUISecret", 0), PlayerGroupAll(), 100.0, 0.0);
if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1649
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, 3.0);
TextTagSetVelocity(TextTagLastCreated(), 2.0, 90.0);
UnitRemove(EventUnit());
SoundPlay(SoundLink("UI_ResourcePickup", 0), PlayerGroupAll(), 100.0, 0.0);
auto22FC4D74_g = UnitGroup(null, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3688
gv_enemyGroupTurretAreaAllDead = true;
gv_computer01AllDone = true;
UnitRemove(UnitFromId(1038));
DialogSetVisible(gv_buttonComputer01SecurityCam, PlayerGroupAll(), false);
VisRevealerDestroy(gv_computer01Revealer01);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3740
TriggerEnable(TriggerGetCurrent(), false);
gv_computer01AllDone = true;
UnitRemove(UnitFromId(1038));
DialogSetVisible(gv_buttonComputer01SecurityCam, PlayerGroupAll(), false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3778
TriggerEnable(TriggerGetCurrent(), false);
gv_computer01AllDone = true;
UnitRemove(UnitFromId(1038));
DialogSetVisible(gv_buttonComputer01SecurityCam, PlayerGroupAll(), false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3816
TriggerEnable(TriggerGetCurrent(), false);
gv_computer01AllDone = true;
UnitRemove(UnitFromId(1038));
DialogSetVisible(gv_buttonComputer01SecurityCam, PlayerGroupAll(), false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:4218
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(UnitFromId(2388)), c_animNameDefault, "Stand Work", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
Wait(2.0, c_timeGame);
UnitRemove(UnitFromId(2596));
UnitRemove(UnitFromId(2951));
UnitRemove(UnitFromId(2952));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:4219
Wait(2.0, c_timeGame);
UnitRemove(UnitFromId(2596));
UnitRemove(UnitFromId(2951));
UnitRemove(UnitFromId(2952));
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:1033
}
UnitRemove(EventUnit());
if ((UnitIsAlive(gv_dogmeat) == true)) {
SoundPlayOnUnit(SoundLink("Dog_Howl", -1), PlayerGroupAll(), gv_dogmeat, 0.0, 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:1436
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:1939
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5043
auto09BD0683_var = UnitGroupUnitFromEnd(auto09BD0683_g, auto09BD0683_u);
if (auto09BD0683_var == null) { break; }
UnitRemove(auto09BD0683_var);
}
autoD27C8764_g = gv_introCinHiddenUnitGroup;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5107
auto26DA110B_var = UnitGroupUnitFromEnd(auto26DA110B_g, auto26DA110B_u);
if (auto26DA110B_var == null) { break; }
UnitRemove(auto26DA110B_var);
}
autoF0BCCE54_g = UnitGroup(null, gv_p4_ACTORS_BLUE, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5114
autoF0BCCE54_var = UnitGroupUnitFromEnd(autoF0BCCE54_g, autoF0BCCE54_u);
if (autoF0BCCE54_var == null) { break; }
UnitRemove(autoF0BCCE54_var);
}
auto6FCA8D42_g = gv_introCinHiddenUnitGroup;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5248
TriggerEnable(TriggerGetCurrent(), false);
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5673
}
UnitRemove(UnitFromId(909));
UnitIssueOrder(UnitFromId(1613), OrderTargetingUnit(AbilityCommand("move", 4), UnitFromId(728)), c_orderQueueReplace);
auto6024391A_g = gv_midHiddenUnitGroup;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1175
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:2937
UnitGroupRemove(gv_mineGuardGroup, EventUnit());
UnitRemove(EventUnit());
if ((UnitGroupCount(gv_mineGuardGroup, c_unitCountAlive) == 0)) {
gv_mineGuardsState = ge_PRESET_MineGuardsState_Inactive;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:3448
}
UnitRemove(EventUnit());
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4851
auto5F902E30_var = UnitGroupUnitFromEnd(auto5F902E30_g, auto5F902E30_u);
if (auto5F902E30_var == null) { break; }
UnitRemove(auto5F902E30_var);
}
auto699F5875_g = UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4858
auto699F5875_var = UnitGroupUnitFromEnd(auto699F5875_g, auto699F5875_u);
if (auto699F5875_var == null) { break; }
UnitRemove(auto699F5875_var);
}
auto29CC7B0A_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);