# Closest Unit To Point
Grammar — Closest unit to point in unitGroup|Unit Group
Flags —Native
|Function
Picks the closest unit to the point specified in a unit group.
# Arguments
unitgroup
— Unit Grouppoint
— Point
Returns — unit
native unit UnitGroupClosestToPoint(unitgroup g, point p);
# Related
Category: Unit Group / Groups
- Add Unit To Unit Group —
void
— UnitGroupAdd - Add Unit Group To Unit Group Old —
void
— libNtve_gf_AddUnitGroupToUnitGroup - Add Unit Group To Unit Group —
void
— UnitGroupAddUnitGroup - Unit Object Group Call For Help —
void
— UnitObjectGroupCallForHelp - Remove Unit From Unit Group —
void
— UnitGroupRemove - Remove Unit Group From Unit Group Old —
void
— libNtve_gf_RemoveUnitGroupFromUnitGroup - Remove Unit Group From Unit Group —
void
— UnitGroupRemoveUnitGroup - Remove All Units From Unit Group —
void
— UnitGroupClear - Pause All Units In Unit Group —
void
— UnitGroupPauseAll - Create Unit Object Group From Unit Group —
int
— UnitObjectGroupFromUnitGroup - Number Of Units In Unit Group —
int
— UnitGroupCount - Unit In Unit Group —
bool
— UnitGroupHasUnit - Unit From Unit Group —
unit
— UnitGroupUnit - Random Unit From Unit Group —
unit
— UnitGroupRandomUnit - Copy Of Unit Group —
unitgroup
— UnitGroupCopy - Closest Unit To Point Old —
unit
— libNtve_gf_ClosestUnitToPoint - Closest Unit To Point —
unit
— UnitGroupClosestToPoint - Center Of Unit Group Old —
point
— libNtve_gf_CenterOfUnitGroup - Center Of Unit Group —
point
— UnitGroupCenterOfGroup
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:1355
TriggerExecute(gt_BarricadeAssault, true, false);
if ((gv_impalerImpalerCount < 5)) {
lv_dropLocation = UnitGetPosition(UnitGroupClosestToPoint(gv_impalerPlayerUnits, PointFromId(1109)));
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4F696B6E"), null, lv_dropLocation);
libNtve_gf_CreateUnitsWithDefaultFacing((5 - gv_impalerImpalerCount), "Impaler", 0, gv_pLAYER_01_USER, lv_dropLocation);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:1412
TriggerExecute(gt_BarricadeAssault, true, false);
if ((gv_impalerImpalerCount < 5)) {
lv_dropLocation = UnitGetPosition(UnitGroupClosestToPoint(gv_impalerPlayerUnits, PointFromId(1109)));
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/14DBA86D"), null, lv_dropLocation);
libNtve_gf_CreateUnitsWithDefaultFacing((5 - gv_impalerImpalerCount), "Impaler", 0, gv_pLAYER_01_USER, lv_dropLocation);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:3519
}
UnitGroupLoopEnd();
UnitGroupAdd(gv_impalerZergWave, UnitGroupClosestToPoint(UnitGroup("Overlord", gv_pLAYER_05_ZERG_ALLIES, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(550)));
if ((gv_impalerFirstBarricadeCleared == false)) {
UnitGroupIssueOrder(gv_impalerZergWave, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(875)), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1060
UnitGroupLoopBegin(gv_feralEscortGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_mutaliskGroup, UnitGetPosition(UnitGroupLoopCurrent()))), c_orderQueueReplace);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1067
UnitGroupLoopBegin(gv_feralEscortGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_mutaliskGroup, UnitGetPosition(UnitGroupLoopCurrent()))), c_orderQueueReplace);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1274
UnitIssueOrder(lv_viking, Order(AbilityCommand("FighterMode", 0)), c_orderQueueReplace);
while ((UnitIsAlive(lv_viking) == true)) {
UnitIssueOrder(lv_viking, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_broodLordsGroup, UnitGetPosition(lv_viking))), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:2379
TransmissionWait(TransmissionLastSent(), 2.0);
libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_pLAYER_02_DOMINION, PointFromId(768));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(gv_torrasques, PointFromId(719)))), c_orderQueueReplace);
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2372
else {
lv_playerBuildings = UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
gv_gorgonTarget = UnitGroupClosestToPoint(lv_playerBuildings, UnitGetPosition(gv_tHE_ONE_GORGON));
if ((gv_gorgonTarget != null)) {
UnitIssueOrder(gv_tHE_ONE_GORGON, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_gorgonTarget)), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:844
for ( ; ( (auto0120D8C9_ai >= 0 && lv_currentArea <= auto0120D8C9_ae) || (auto0120D8C9_ai < 0 && lv_currentArea >= auto0120D8C9_ae) ) ; lv_currentArea += auto0120D8C9_ai ) {
if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0)) {
lv_currentUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_flashFreezeRetreatAreas[lv_currentArea]));
if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
lv_deliverRetreatLine = true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:3444
TriggerEnable(TriggerGetCurrent(), false);
lv_target = UnitGroupClosestToPoint(UnitGroup("HybridScienceFacility", c_playerAny, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(41), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1), 1)));
UIAlertUnit("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/3B9EB9EA"), null, lv_target);
TriggerExecute(gt_BonusObjectiveActivatedQ, true, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4133
lv_dominions_Left = UnitGroupAlliance(gv_pLAYER_06_INFESTED, c_unitAllianceEnemy, RegionFromId(58), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupRemove(lv_dominions_Left, UnitFromId(212));
lv_target_Left = UnitGroupClosestToPoint(lv_dominions_Left, PointFromId(1239));
lv_dominions_Right = lv_dominions;
UnitGroupRemoveUnitGroup(lv_dominions_Right, lv_dominions_Left);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4136
lv_dominions_Right = lv_dominions;
UnitGroupRemoveUnitGroup(lv_dominions_Right, lv_dominions_Left);
lv_target_Right = UnitGroupClosestToPoint(lv_dominions_Right, PointFromId(1239));
if ((lv_target_Left == null)) {
lv_target_Left = lv_target_Right;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1201
if ((gv_corrosiveBlastUsed == false)) {
if ((UnitIsAlive(gv_stukov) == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_stukov), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
gf_TeachCorrosiveBlast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_stukov), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(gv_stukov)));
Wait(1.0, c_timeReal);
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1403
auto74F695C2_var = UnitGroupUnitFromEnd(auto74F695C2_g, auto74F695C2_u);
if (auto74F695C2_var == null) { break; }
UnitIssueOrder(auto74F695C2_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto74F695C2_var)))), c_orderQueueReplace);
}
TriggerQueueEnter();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1465
auto3A48285B_var = UnitGroupUnitFromEnd(auto3A48285B_g, auto3A48285B_u);
if (auto3A48285B_var == null) { break; }
UnitIssueOrder(auto3A48285B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto3A48285B_var)))), c_orderQueueReplace);
}
TriggerQueueEnter();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:3977
}
if ((UnitGroupCount(lv_consumeDNATargets, c_unitCountAlive) >= 1)) {
libNtve_gf_AICast(auto9D485733_var, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupClosestToPoint(lv_consumeDNATargets, UnitGetPosition(auto9D485733_var))));
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:5651
lv_dominionGroup = UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_kerrigan), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((UnitGroupCount(lv_dominionGroup, c_unitCountAlive) >= 1)) {
UnitKill(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_kerrigan), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(gv_kerrigan)));
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:823
lv_hint = StringExternal("Param/Value/917CD5B6");
gv_s01_NumberOfDroneActors += 1;
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(47), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(164));
gf_CreateHelperonUnit(lv_hint, lv_drone, libSwaC_ge_CampaginReticleType_TerranMainObjective, libSwaC_ge_CampaginReticleSize_Small, 0.0);
gv_s01_DroneActors[gv_s01_NumberOfDroneActors] = libNtve_gf_ActorLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:822
}
else {
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(28), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(57));
}
if ((lv_drone != null)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:971
}
else {
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(561));
}
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Small, lv_hint, lv_drone, "Ref_Origin");
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8785
lv_i = 1;
for ( ; ( (auto21D17BD2_ai >= 0 && lv_i <= auto21D17BD2_ae) || (auto21D17BD2_ai < 0 && lv_i >= auto21D17BD2_ae) ) ; lv_i += auto21D17BD2_ai ) {
lv_currentUnit = UnitGroupClosestToPoint(lv_tempUnitGroup, lv_points[lv_i]);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_points[lv_i]), c_orderQueueReplace);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(460)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:8799
lv_i = 1;
for ( ; ( (autoD0F364BF_ai >= 0 && lv_i <= autoD0F364BF_ae) || (autoD0F364BF_ai < 0 && lv_i >= autoD0F364BF_ae) ) ; lv_i += autoD0F364BF_ai ) {
lv_currentUnit = UnitGroupClosestToPoint(lv_tempUnitGroup, lv_points[lv_i]);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_points[lv_i]), c_orderQueueReplace);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(460)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4040
TriggerQueueEnter();
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
lv_bot = UnitGroupClosestToPoint(lv_repairBots10, UnitGetPosition(gv_hyperion));
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_TerranBonusObjective, libSwaC_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/A7A0B803"), lv_bot, "Ref_Center");
libHots_gf_StoreActorForUnit(lv_bot, 1, libNtve_gf_ActorLastCreated());
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1808
}
else {
if ((gf_UnitGroupIsIdle(gv_aIHarvestGroups[lp_harvestIndex]) == true) && (DistanceBetweenPoints(UnitGetPosition(UnitGroupClosestToPoint(gv_aIHarvestGroups[lp_harvestIndex], UnitGetPosition(gv_corpse_PerCamp[lv_campIndex]))), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])) < 10.0)) {
UnitGroupIssueOrder(gv_aIHarvestGroups[lp_harvestIndex], OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:740
}
lv_currentUnit = UnitGroupClosestToPoint(lv_attackGroup, PointFromId(36));
UnitGroupRemove(lv_attackGroup, lv_currentUnit);
AISetUnitScriptControlled(lv_currentUnit, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2033
}
lv_currentUnit = UnitGroupClosestToPoint(lv_yagdraInitialAttackGroup, RegionGetCenter(RegionFromId(29)));
UnitGroupRemove(lv_yagdraInitialAttackGroup, lv_currentUnit);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2269
}
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/EAA9E621"), null, UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))));
libSwaC_gf_PingMinimapCampaign(PlayerGroupAll(), UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))), 5.0, Color(100.00, 0.00, 0.00));
Wait(1.0, c_timeReal);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2270
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/EAA9E621"), null, UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))));
libSwaC_gf_PingMinimapCampaign(PlayerGroupAll(), UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))), 5.0, Color(100.00, 0.00, 0.00));
Wait(1.0, c_timeReal);
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3076
if (auto62188331_var == null) { break; }
if ((UnitGroupCount(lv_leftEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto62188331_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_leftEnemyGroup, UnitGetPosition(auto62188331_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3080
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto62188331_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto62188331_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3093
if (auto854D4A6A_var == null) { break; }
if ((UnitGroupCount(lv_middleEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto854D4A6A_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_middleEnemyGroup, UnitGetPosition(auto854D4A6A_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3097
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto854D4A6A_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto854D4A6A_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3110
if (auto0607D50B_var == null) { break; }
if ((UnitGroupCount(lv_rightEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto0607D50B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_rightEnemyGroup, UnitGetPosition(auto0607D50B_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3114
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto0607D50B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto0607D50B_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1336
Wait(2.0, c_timeGame);
if ((lp_intelligentTargeting == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_zurvanTentacleRegions[lp_tentacle], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) >= 1)) {
UnitIssueOrder(gv_zurvanTentacles[lp_tentacle], OrderTargetingPoint(AbilityCommand("ZurvanTentacleSlam", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_zurvanTentacleRegions[lp_tentacle], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_zurvanTentacleRegions[lp_tentacle])))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:2766
if (auto43C9DCDF_var == null) { break; }
if ((UnitGroupCount(lv_playerUnits, c_unitCountAlive) >= 1)) {
lv_closestUnit = UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto43C9DCDF_var));
if ((UnitGetType(auto43C9DCDF_var) == "SlivanCreep")) {
UnitIssueOrder(auto43C9DCDF_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_closestUnit)), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:2927
}
if ((UnitGroupCount(lv_primalGroup, c_unitCountAlive) > 0)) {
gf_OrderPrimaltoAttackCritter(UnitGroupClosestToPoint(lv_primalGroup, UnitGetPosition(lv_currentCritter)), lv_currentCritter);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:6466
UnitIssueOrder(autoF7D49E75_var, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
}
lv_victorySpeaker = UnitGroupClosestToPoint(gv_victoryRescuedProtoss, UnitGetPosition(gv_victoryZeratul));
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryTV, 50.0, 1.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:1864
auto32A283DE_var = UnitGroupUnitFromEnd(auto32A283DE_g, auto32A283DE_u);
if (auto32A283DE_var == null) { break; }
UnitIssueOrder(auto32A283DE_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(UnitGroup("InvisibleTargetDummy", 0, RegionFromName(("Bonus Objective Activate " + IntToString(lv_bonusIndex))), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto32A283DE_var))), c_orderQueueReplace);
}
auto5B3D348A_g = UnitGroup("InvisibleTargetDummy", 0, RegionFromName(("Bonus Objective Activate " + IntToString(lv_bonusIndex))), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2456
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_03_TALDARIM, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2521
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_04_TALDARIM, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2586
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_05_TALDARIM, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:408
}
else {
lv_targetUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lp_observer), 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_observer));
}
if ((DistanceBetweenPoints(UnitGetPosition(lp_observer), UnitGetPosition(lv_targetUnit)) > 6.0)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:669
else {
if ((RandomInt(1, 8) == 1)) {
UnitIssueOrder(lp_hybrid, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, lv_attackRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_hybrid))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:676
if ((UnitIsAlive(lp_hybrid) == true) && (libNtve_gf_UnitInRegion(gv_zeratul, lv_attackRegion) == true)) {
UnitIssueOrder(lp_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, lv_attackRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_hybrid))), c_orderQueueAddToFront);
Wait(1.0, c_timeAI);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:1472
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(auto16E4DC23_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(auto16E4DC23_var)))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:4062
if ((UnitGroupCount(lv_remainingAscendants, c_unitCountAlive) > 0)) {
if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 1), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(lv_remainingAscendants, 1))))), c_orderQueueReplace);
UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 2), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:6419
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(autoB0D64614_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(autoB0D64614_var)))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:6480
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(autoFA044A09_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(autoFA044A09_var)))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map — MapScript.galaxy:1355
TriggerExecute(gt_BarricadeAssault, true, false);
if ((gv_impalerImpalerCount < 5)) {
lv_dropLocation = UnitGetPosition(UnitGroupClosestToPoint(gv_impalerPlayerUnits, PointFromId(1109)));
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4F696B6E"), null, lv_dropLocation);
libNtve_gf_CreateUnitsWithDefaultFacing((5 - gv_impalerImpalerCount), "Impaler", 0, gv_pLAYER_01_USER, lv_dropLocation);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map — MapScript.galaxy:1412
TriggerExecute(gt_BarricadeAssault, true, false);
if ((gv_impalerImpalerCount < 5)) {
lv_dropLocation = UnitGetPosition(UnitGroupClosestToPoint(gv_impalerPlayerUnits, PointFromId(1109)));
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/14DBA86D"), null, lv_dropLocation);
libNtve_gf_CreateUnitsWithDefaultFacing((5 - gv_impalerImpalerCount), "Impaler", 0, gv_pLAYER_01_USER, lv_dropLocation);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map — MapScript.galaxy:3519
}
UnitGroupLoopEnd();
UnitGroupAdd(gv_impalerZergWave, UnitGroupClosestToPoint(UnitGroup("Overlord", gv_pLAYER_05_ZERG_ALLIES, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(550)));
if ((gv_impalerFirstBarricadeCleared == false)) {
UnitGroupIssueOrder(gv_impalerZergWave, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(875)), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:1060
UnitGroupLoopBegin(gv_feralEscortGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_mutaliskGroup, UnitGetPosition(UnitGroupLoopCurrent()))), c_orderQueueReplace);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:1067
UnitGroupLoopBegin(gv_feralEscortGroup);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitIssueOrder(UnitGroupLoopCurrent(), OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_mutaliskGroup, UnitGetPosition(UnitGroupLoopCurrent()))), c_orderQueueReplace);
}
UnitGroupLoopEnd();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map — MapScript.galaxy:1274
UnitIssueOrder(lv_viking, Order(AbilityCommand("FighterMode", 0)), c_orderQueueReplace);
while ((UnitIsAlive(lv_viking) == true)) {
UnitIssueOrder(lv_viking, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(gv_broodLordsGroup, UnitGetPosition(lv_viking))), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map — MapScript.galaxy:2379
TransmissionWait(TransmissionLastSent(), 2.0);
libNtve_gf_CreateUnitsAtPoint2(1, "Marine", 0, gv_pLAYER_02_DOMINION, PointFromId(768));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(gv_torrasques, PointFromId(719)))), c_orderQueueReplace);
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:2372
else {
lv_playerBuildings = UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
gv_gorgonTarget = UnitGroupClosestToPoint(lv_playerBuildings, UnitGetPosition(gv_tHE_ONE_GORGON));
if ((gv_gorgonTarget != null)) {
UnitIssueOrder(gv_tHE_ONE_GORGON, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_gorgonTarget)), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2map — MapScript.galaxy:844
for ( ; ( (auto0120D8C9_ai >= 0 && lv_currentArea <= auto0120D8C9_ae) || (auto0120D8C9_ai < 0 && lv_currentArea >= auto0120D8C9_ae) ) ; lv_currentArea += auto0120D8C9_ai ) {
if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0)) {
lv_currentUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_flashFreezeRetreatAreas[lv_currentArea]));
if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
lv_deliverRetreatLine = true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:3444
TriggerEnable(TriggerGetCurrent(), false);
lv_target = UnitGroupClosestToPoint(UnitGroup("HybridScienceFacility", c_playerAny, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(41), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1), 1)));
UIAlertUnit("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/3B9EB9EA"), null, lv_target);
TriggerExecute(gt_BonusObjectiveActivatedQ, true, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:4133
lv_dominions_Left = UnitGroupAlliance(gv_pLAYER_06_INFESTED, c_unitAllianceEnemy, RegionFromId(58), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupRemove(lv_dominions_Left, UnitFromId(212));
lv_target_Left = UnitGroupClosestToPoint(lv_dominions_Left, PointFromId(1239));
lv_dominions_Right = lv_dominions;
UnitGroupRemoveUnitGroup(lv_dominions_Right, lv_dominions_Left);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:4136
lv_dominions_Right = lv_dominions;
UnitGroupRemoveUnitGroup(lv_dominions_Right, lv_dominions_Left);
lv_target_Right = UnitGroupClosestToPoint(lv_dominions_Right, PointFromId(1239));
if ((lv_target_Left == null)) {
lv_target_Left = lv_target_Right;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1201
if ((gv_corrosiveBlastUsed == false)) {
if ((UnitIsAlive(gv_stukov) == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_stukov), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
gf_TeachCorrosiveBlast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_stukov), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(gv_stukov)));
Wait(1.0, c_timeReal);
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1403
auto74F695C2_var = UnitGroupUnitFromEnd(auto74F695C2_g, auto74F695C2_u);
if (auto74F695C2_var == null) { break; }
UnitIssueOrder(auto74F695C2_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto74F695C2_var)))), c_orderQueueReplace);
}
TriggerQueueEnter();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:1465
auto3A48285B_var = UnitGroupUnitFromEnd(auto3A48285B_g, auto3A48285B_u);
if (auto3A48285B_var == null) { break; }
UnitIssueOrder(auto3A48285B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto3A48285B_var)))), c_orderQueueReplace);
}
TriggerQueueEnter();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map — MapScript.galaxy:3977
}
if ((UnitGroupCount(lv_consumeDNATargets, c_unitCountAlive) >= 1)) {
libNtve_gf_AICast(auto9D485733_var, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupClosestToPoint(lv_consumeDNATargets, UnitGetPosition(auto9D485733_var))));
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2map — MapScript.galaxy:5651
lv_dominionGroup = UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_kerrigan), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
if ((UnitGroupCount(lv_dominionGroup, c_unitCountAlive) >= 1)) {
UnitKill(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_02_DOMINION, RegionCircle(UnitGetPosition(gv_kerrigan), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(gv_kerrigan)));
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:823
lv_hint = StringExternal("Param/Value/917CD5B6");
gv_s01_NumberOfDroneActors += 1;
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(47), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(164));
gf_CreateHelperonUnit(lv_hint, lv_drone, libSwaC_ge_CampaginReticleType_TerranMainObjective, libSwaC_ge_CampaginReticleSize_Small, 0.0);
gv_s01_DroneActors[gv_s01_NumberOfDroneActors] = libNtve_gf_ActorLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:822
}
else {
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(28), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(57));
}
if ((lv_drone != null)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:971
}
else {
lv_drone = UnitGroupClosestToPoint(UnitGroup("Drone", gv_pLAYER_01_USER, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), PointFromId(561));
}
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Small, lv_hint, lv_drone, "Ref_Origin");
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:8785
lv_i = 1;
for ( ; ( (auto21D17BD2_ai >= 0 && lv_i <= auto21D17BD2_ae) || (auto21D17BD2_ai < 0 && lv_i >= auto21D17BD2_ae) ) ; lv_i += auto21D17BD2_ai ) {
lv_currentUnit = UnitGroupClosestToPoint(lv_tempUnitGroup, lv_points[lv_i]);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_points[lv_i]), c_orderQueueReplace);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(460)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:8799
lv_i = 1;
for ( ; ( (autoD0F364BF_ai >= 0 && lv_i <= autoD0F364BF_ae) || (autoD0F364BF_ai < 0 && lv_i >= autoD0F364BF_ae) ) ; lv_i += autoD0F364BF_ai ) {
lv_currentUnit = UnitGroupClosestToPoint(lv_tempUnitGroup, lv_points[lv_i]);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_points[lv_i]), c_orderQueueReplace);
UnitIssueOrder(lv_currentUnit, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(460)), c_orderQueueAddToEnd);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:4040
TriggerQueueEnter();
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
lv_bot = UnitGroupClosestToPoint(lv_repairBots10, UnitGetPosition(gv_hyperion));
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_TerranBonusObjective, libSwaC_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/A7A0B803"), lv_bot, "Ref_Center");
libHots_gf_StoreActorForUnit(lv_bot, 1, libNtve_gf_ActorLastCreated());
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1808
}
else {
if ((gf_UnitGroupIsIdle(gv_aIHarvestGroups[lp_harvestIndex]) == true) && (DistanceBetweenPoints(UnitGetPosition(UnitGroupClosestToPoint(gv_aIHarvestGroups[lp_harvestIndex], UnitGetPosition(gv_corpse_PerCamp[lv_campIndex]))), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])) < 10.0)) {
UnitGroupIssueOrder(gv_aIHarvestGroups[lp_harvestIndex], OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:740
}
lv_currentUnit = UnitGroupClosestToPoint(lv_attackGroup, PointFromId(36));
UnitGroupRemove(lv_attackGroup, lv_currentUnit);
AISetUnitScriptControlled(lv_currentUnit, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:2033
}
lv_currentUnit = UnitGroupClosestToPoint(lv_yagdraInitialAttackGroup, RegionGetCenter(RegionFromId(29)));
UnitGroupRemove(lv_yagdraInitialAttackGroup, lv_currentUnit);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:2269
}
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/EAA9E621"), null, UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))));
libSwaC_gf_PingMinimapCampaign(PlayerGroupAll(), UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))), 5.0, Color(100.00, 0.00, 0.00));
Wait(1.0, c_timeReal);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:2270
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/EAA9E621"), null, UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))));
libSwaC_gf_PingMinimapCampaign(PlayerGroupAll(), UnitGetPosition(UnitGroupClosestToPoint(gv_airAttackGroup, PointFromId(36))), 5.0, Color(100.00, 0.00, 0.00));
Wait(1.0, c_timeReal);
libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3076
if (auto62188331_var == null) { break; }
if ((UnitGroupCount(lv_leftEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto62188331_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_leftEnemyGroup, UnitGetPosition(auto62188331_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3080
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto62188331_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto62188331_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3093
if (auto854D4A6A_var == null) { break; }
if ((UnitGroupCount(lv_middleEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto854D4A6A_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_middleEnemyGroup, UnitGetPosition(auto854D4A6A_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3097
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto854D4A6A_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto854D4A6A_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3110
if (auto0607D50B_var == null) { break; }
if ((UnitGroupCount(lv_rightEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto0607D50B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_rightEnemyGroup, UnitGetPosition(auto0607D50B_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2map — MapScript.galaxy:3114
else {
if ((UnitGroupCount(lv_fullEnemyGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto0607D50B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_fullEnemyGroup, UnitGetPosition(auto0607D50B_var)))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:1336
Wait(2.0, c_timeGame);
if ((lp_intelligentTargeting == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_zurvanTentacleRegions[lp_tentacle], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) >= 1)) {
UnitIssueOrder(gv_zurvanTentacles[lp_tentacle], OrderTargetingPoint(AbilityCommand("ZurvanTentacleSlam", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_zurvanTentacleRegions[lp_tentacle], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_zurvanTentacleRegions[lp_tentacle])))), c_orderQueueReplace);
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:2766
if (auto43C9DCDF_var == null) { break; }
if ((UnitGroupCount(lv_playerUnits, c_unitCountAlive) >= 1)) {
lv_closestUnit = UnitGroupClosestToPoint(lv_playerUnits, UnitGetPosition(auto43C9DCDF_var));
if ((UnitGetType(auto43C9DCDF_var) == "SlivanCreep")) {
UnitIssueOrder(auto43C9DCDF_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_closestUnit)), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:2927
}
if ((UnitGroupCount(lv_primalGroup, c_unitCountAlive) > 0)) {
gf_OrderPrimaltoAttackCritter(UnitGroupClosestToPoint(lv_primalGroup, UnitGetPosition(lv_currentCritter)), lv_currentCritter);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:6466
UnitIssueOrder(autoF7D49E75_var, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
}
lv_victorySpeaker = UnitGroupClosestToPoint(gv_victoryRescuedProtoss, UnitGetPosition(gv_victoryZeratul));
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryTV, 50.0, 1.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map — MapScript.galaxy:1864
auto32A283DE_var = UnitGroupUnitFromEnd(auto32A283DE_g, auto32A283DE_u);
if (auto32A283DE_var == null) { break; }
UnitIssueOrder(auto32A283DE_var, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(UnitGroup("InvisibleTargetDummy", 0, RegionFromName(("Bonus Objective Activate " + IntToString(lv_bonusIndex))), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto32A283DE_var))), c_orderQueueReplace);
}
auto5B3D348A_g = UnitGroup("InvisibleTargetDummy", 0, RegionFromName(("Bonus Objective Activate " + IntToString(lv_bonusIndex))), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map — MapScript.galaxy:2456
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_03_TALDARIM, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map — MapScript.galaxy:2521
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_04_TALDARIM, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map — MapScript.galaxy:2586
UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_05_TALDARIM, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
if ((lv_chosenZealot == null)) {
return true;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:408
}
else {
lv_targetUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lp_observer), 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_observer));
}
if ((DistanceBetweenPoints(UnitGetPosition(lp_observer), UnitGetPosition(lv_targetUnit)) > 6.0)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:669
else {
if ((RandomInt(1, 8) == 1)) {
UnitIssueOrder(lp_hybrid, OrderTargetingUnit(AbilityCommand("attack", 0), UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, lv_attackRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_hybrid))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:676
if ((UnitIsAlive(lp_hybrid) == true) && (libNtve_gf_UnitInRegion(gv_zeratul, lv_attackRegion) == true)) {
UnitIssueOrder(lp_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, lv_attackRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(lp_hybrid))), c_orderQueueAddToFront);
Wait(1.0, c_timeAI);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:1472
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(auto16E4DC23_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(auto16E4DC23_var)))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:4062
if ((UnitGroupCount(lv_remainingAscendants, c_unitCountAlive) > 0)) {
if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 1), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(lv_remainingAscendants, 1))))), c_orderQueueReplace);
UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 2), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:6419
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(autoB0D64614_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(autoB0D64614_var)))), c_orderQueueReplace);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:6480
}
if ((UnitGroupCount(lv_validTargets, c_unitCountAlive) > 0)) {
UnitIssueOrder(autoFA044A09_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_validTargets, UnitGetPosition(autoFA044A09_var)))), c_orderQueueReplace);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4599
}
if ((UnitGroupCount(lv_resourceGroup, c_unitCountAlive) > 0)) {
UnitIssueOrder(lv_indexWorker, OrderTargetingUnit(null, UnitGroupClosestToPoint(lv_resourceGroup, UnitGetPosition(lv_indexWorker))), c_orderQueueReplace);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4623
}
if ((UnitGroupCount(lv_resourceGroup, c_unitCountAlive) > 0)) {
UnitIssueOrder(lv_indexWorker, OrderTargetingUnit(null, UnitGroupClosestToPoint(lv_resourceGroup, UnitGetPosition(lv_indexWorker))), c_orderQueueReplace);
}