# Angle Between Points
Grammar — Angle from p1|Point to p2|Point
Flags —Native
|Function
Returns the angle from point 1 to point 2 as a real value, in degrees.
# Arguments
point
— Point 1point
— Point 2
Returns — fixed
native fixed AngleBetweenPoints(point p1, point p2);
# Related
Category: Point / Measurements
- X Of Point —
fixed
— PointGetX - Y Of Point —
fixed
— PointGetY - Facing Angle Of Point —
fixed
— PointGetFacing - Height Of Point —
fixed
— PointGetHeight - Angle Between Points —
fixed
— AngleBetweenPoints - Distance Between Points —
fixed
— DistanceBetweenPoints - Distance Squared Between Points —
fixed
— DistanceSquaredBetweenPoints - Point Is In Region —
bool
— RegionContainsPoint
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1798
lv_initialOffsetPoint = PointWithOffset(gv_terraTronPosition, lp_xOffset, lp_yOffset);
lv_distanceBetweenPoints = DistanceBetweenPoints(gv_terraTronPosition, lv_initialOffsetPoint);
lv_angleBetweenPoints = AngleBetweenPoints(gv_terraTronPosition, lv_initialOffsetPoint);
lv_scaledDistance = (lv_distanceBetweenPoints * gv_terraTronScale);
lv_finalOffsetPoint = PointWithOffsetPolar(gv_terraTronPosition, lv_scaledDistance, lv_angleBetweenPoints);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3104
}
if ((PointGetX(lv_posNext) != PointGetX(lv_posCur)) && (PointGetY(lv_posNext) != PointGetY(lv_posCur))) {
lv_posNext = PointWithOffsetPolar(lv_posCur, lv_moveUnit, AngleBetweenPoints(lv_posCur, lv_posNext));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4935
lv_posInterceptor = UnitGetPosition(lv_interceptor);
lv_posViking = UnitGetPosition(gv_viking);
lv_angle = AngleBetweenPoints(lv_posInterceptor, lv_posViking);
if ((UnitIsAlive(gv_viking) == true) && (RandomInt(1, 3) == 1)) {
lv_target = PointWithOffsetPolar(lv_posInterceptor, 30.0, lv_angle);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6325
}
if ((lv_facingViking == true) && (UnitIsAlive(gv_viking) == true)) {
libNtve_gf_MakeUnitFacePoint(lv_plane, UnitGetPosition(gv_viking), (AbsF((UnitGetFacing(lv_plane) - AngleBetweenPoints(lv_posCurrent, UnitGetPosition(gv_viking)))) / 30.0));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6338
else {
}
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6429
lv_outerBounds = gf_GetOuterBoundary();
lv_posCurrent = UnitGetPosition(lv_plane);
lv_posFinish = PointWithOffsetPolar(lv_posCurrent, 30.0, AngleBetweenPoints(lv_posCurrent, lv_posFinish));
UnitIssueOrder(lv_plane, OrderTargetingPoint(AbilityCommand("move", 0), lv_posFinish), c_orderQueueReplace);
lv_shootDelay = RandomInt(4, 12);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6439
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (lv_index == lv_shootDelay)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6535
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (gf_CurrentLevel() != 3)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6548
lv_outerBounds = gf_GetOuterBoundary();
lv_posCurrent = UnitGetPosition(lv_plane);
lv_posFinish = PointWithOffsetPolar(lv_posCurrent, 30.0, AngleBetweenPoints(lv_posCurrent, lv_posFinish));
UnitIssueOrder(lv_plane, OrderTargetingPoint(AbilityCommand("move", 0), lv_posFinish), c_orderQueueReplace);
lv_shootDelay = RandomInt(20, 36);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6558
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (gf_CurrentLevel() == 3) && (lv_index == lv_shootDelay)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3733
UnitSetCustomValue(autoE914C699_var, 0, 0.0);
}
lv_anglebetweentruckship = (AngleBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(gv_activeCivilianShip)) + 180.0);
UnitIssueOrder(EventUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("Rally", 0), UnitGetPosition(gv_activeCivilianShip)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4532
}
TriggerExecute(gt_IntroFeederlingMover, true, false);
libNtve_gf_UnitCreateFacingPoint(1, "BroodLord", 0, gv_p07_ZERG_INFESTED, PointWithOffsetPolar(PointFromId(4173), lv_broodLordDistance, AngleBetweenPoints(PointFromId(644), PointFromId(4173))), UnitGetPosition(UnitFromId(97)));
lv_broodLord1 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:4535
lv_broodLord1 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord1);
libNtve_gf_UnitCreateFacingPoint(1, "BroodLord", 0, gv_p07_ZERG_INFESTED, PointWithOffsetPolar(PointFromId(565), lv_broodLordDistance, AngleBetweenPoints(PointFromId(645), PointFromId(565))), UnitGetPosition(UnitFromId(96)));
lv_broodLord2 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord2);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:379
lv_distanceRemaining = lv_seperationDistance;
if ((lv_seperationDistance <= DistanceBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(lv_currentPoint, lv_seperationDistance, AngleBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:390
if ((lv_distanceRemaining <= DistanceBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(gv_trainPath[lv_currentTarget], lv_distanceRemaining, AngleBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]));
break;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:397
}
}
PointSetFacing(lv_currentPoint, AngleBetweenPoints(lv_currentPoint, gv_trainPath[lv_currentTarget]));
return lv_currentPoint;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:577
lv_distanceRemaining = lv_seperationDistance;
if ((lv_seperationDistance <= DistanceBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(lv_currentPoint, lv_seperationDistance, AngleBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:588
if ((lv_distanceRemaining <= DistanceBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(gv_trainPath[lv_currentTarget], lv_distanceRemaining, AngleBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]));
break;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2155
}
UnitIssueOrder(auto499A4BF2_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto499A4BF2_var), 1.0, AngleBetweenPoints(UnitGetPosition(auto499A4BF2_var), gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))]))), c_orderQueueReplace);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5912
auto9586D451_var = UnitGroupUnitFromEnd(auto9586D451_g, auto9586D451_u);
if (auto9586D451_var == null) { break; }
UnitSetPosition(auto9586D451_var, PointWithOffsetPolar(UnitGetPosition(auto9586D451_var), -3.0, AngleBetweenPoints(UnitGetPosition(auto9586D451_var), UnitGetPosition(lv_crate))), true);
}
lv_i = 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5940
auto9C174672_var = UnitGroupUnitFromEnd(auto9C174672_g, auto9C174672_u);
if (auto9C174672_var == null) { break; }
UnitIssueOrder(auto9C174672_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto9C174672_var), (DistanceBetweenPoints(UnitGetPosition(auto9C174672_var), UnitGetPosition(lv_crate)) - 1.5), AngleBetweenPoints(UnitGetPosition(auto9C174672_var), UnitGetPosition(lv_crate)))), c_orderQueueReplace);
}
TriggerExecute(gt_VictoryCapsuleAnimation, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2557
UnitSetCustomValue(lv_scientist, 0, 1.0);
if ((lv_scientist == EventUnit())) {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnitDamageSourceUnit()), UnitGetPosition(lv_scientist));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2560
}
else {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(lv_scientist));
}
lv_whereToRun = PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(3.0, 9.0), (lv_angle + RandomFixed(-20.0, 20.0)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2616
if ((UnitGroupCount(lv_intruderGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_intruderGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2672
if ((UnitGroupCount(lv_brutaliskGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_brutaliskGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2728
if ((UnitGroupCount(lv_hybridGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_hybridGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3713
lv_sourceAfterScaled = Point((lv_x1 + ((lv_x2 - lv_x1) * lp_xRatio)), (lv_y1 + ((lv_y2 - lv_y1) * lp_yRatio)));
lv_dis = DistanceBetweenPoints(lp_sourceCenter, lv_sourceAfterScaled);
lv_angel = AngleBetweenPoints(lp_sourceCenter, lv_sourceAfterScaled);
lv_angel += lp_rotate;
lv_ret = PointWithOffsetPolar(lp_targetCenter, lv_dis, lv_angel);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:771
UnitGroupAdd(gv_cellBlockAJerksGroup, autoA878FA45_var);
UnitSetCustomValue(autoA878FA45_var, 0, DistanceBetweenPoints(UnitGetPosition(autoA878FA45_var), PointFromId(1140)));
UnitSetCustomValue(autoA878FA45_var, 1, AngleBetweenPoints(PointFromId(1140), UnitGetPosition(autoA878FA45_var)));
}
TriggerExecute(gt_CellBlockAPatrol, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2357
lv_a = UnitGetPosition(gv_tHEONEDRILL);
lv_b = UnitGetPosition(gv_laserDrillTargetUnit);
lv_facing = AngleBetweenPoints(lv_a, lv_b);
lv_d = DistanceBetweenPoints(lv_a, lv_b);
lv_di = FixedToInt((lv_d / 5.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:596
UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);
if ((UnitGetType(lp_activatedunit) == "Infestor")) {
UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("InfestedTerrans", 0), RegionRandomPoint(RegionCircle(PointWithOffsetPolar(UnitGetPosition(lp_activatedunit), (DistanceBetweenPoints(lv_rallypoint, UnitGetPosition(lp_activatedunit)) - 2.0), AngleBetweenPoints(UnitGetPosition(lp_activatedunit), lv_rallypoint)), 1.5))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:8319
UnitIssueOrder(auto8DBA43E6_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
if ((UnitGetCustomValue(auto8DBA43E6_var, 0) < libNtve_gf_DifficultyValueFixed(3.0, 3.0, 4.0, 5.0))) {
UnitIssueOrder(auto8DBA43E6_var, OrderTargetingPoint(AbilityCommand("InfestedTerrans", 0), RegionRandomPoint(RegionCircle(PointWithOffsetPolar(UnitGetPosition(auto8DBA43E6_var), (DistanceBetweenPoints(lv_rallypoint, UnitGetPosition(auto8DBA43E6_var)) - 2.0), AngleBetweenPoints(UnitGetPosition(auto8DBA43E6_var), lv_rallypoint)), 1.5))), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:10595
UnitGroupAdd(gv_cinematicReinforcements, UnitLastCreated());
libNtve_gf_ChangeUnitDamage(UnitLastCreated(), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_Minimal);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(UnitLastCreated()), 5.0, AngleBetweenPoints(UnitGetPosition(UnitLastCreated()), PointFromId(2223)))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:5617
autoE89A9445_var = UnitGroupUnitFromEnd(autoE89A9445_g, autoE89A9445_u);
if (autoE89A9445_var == null) { break; }
UnitSetPosition(autoE89A9445_var, PointWithOffsetPolar(UnitGetPosition(autoE89A9445_var), 6.0, AngleBetweenPoints(UnitGetPosition(gv_artifact), UnitGetPosition(autoE89A9445_var))), false);
}
auto6239B03C_g = UnitGroup(null, gv_pLAYER_ZERG_MAIN, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2778
if (auto45ED8A27_var == null) { break; }
UnitIssueOrder(auto45ED8A27_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto45ED8A27_var, 1) + 0.2), (UnitGetCustomValue(auto45ED8A27_var, 1) - 0.2)), (UnitGetCustomValue(auto45ED8A27_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto45ED8A27_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto45ED8A27_var)));
}
auto11B330CC_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2786
if (auto11B330CC_var == null) { break; }
UnitIssueOrder(auto11B330CC_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto11B330CC_var, 1) + 0.2), (UnitGetCustomValue(auto11B330CC_var, 1) - 0.2)), (UnitGetCustomValue(auto11B330CC_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto11B330CC_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto11B330CC_var)));
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3617
if (auto4DA823A6_var == null) { break; }
UnitIssueOrder(auto4DA823A6_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(548), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto4DA823A6_var, 1) + 0.2), (UnitGetCustomValue(auto4DA823A6_var, 1) - 0.2)), (UnitGetCustomValue(auto4DA823A6_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto4DA823A6_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(548), 0.0, -1.5), UnitGetPosition(auto4DA823A6_var)));
}
autoE853CE9F_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3625
if (autoE853CE9F_var == null) { break; }
UnitIssueOrder(autoE853CE9F_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(548), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoE853CE9F_var, 1) + 0.2), (UnitGetCustomValue(autoE853CE9F_var, 1) - 0.2)), (UnitGetCustomValue(autoE853CE9F_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoE853CE9F_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(548), 0.0, -1.5), UnitGetPosition(autoE853CE9F_var)));
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6358
if (auto3847C7E3_var == null) { break; }
UnitIssueOrder(auto3847C7E3_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto3847C7E3_var, 1) + 0.2), (UnitGetCustomValue(auto3847C7E3_var, 1) - 0.2)), (UnitGetCustomValue(auto3847C7E3_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto3847C7E3_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto3847C7E3_var)));
}
auto190E44E5_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6366
if (auto190E44E5_var == null) { break; }
UnitIssueOrder(auto190E44E5_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto190E44E5_var, 1) + 0.2), (UnitGetCustomValue(auto190E44E5_var, 1) - 0.2)), (UnitGetCustomValue(auto190E44E5_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto190E44E5_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto190E44E5_var)));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6376
if (autoE8B100A8_var == null) { break; }
UnitIssueOrder(autoE8B100A8_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(664), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoE8B100A8_var, 1) + 0.2), (UnitGetCustomValue(autoE8B100A8_var, 1) - 0.2)), (UnitGetCustomValue(autoE8B100A8_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoE8B100A8_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(664), 0.0, -1.5), UnitGetPosition(autoE8B100A8_var)));
}
autoCE0E774C_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:6384
if (autoCE0E774C_var == null) { break; }
UnitIssueOrder(autoCE0E774C_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(664), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoCE0E774C_var, 1) + 0.2), (UnitGetCustomValue(autoCE0E774C_var, 1) - 0.2)), (UnitGetCustomValue(autoCE0E774C_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoCE0E774C_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(664), 0.0, -1.5), UnitGetPosition(autoCE0E774C_var)));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7522
UnitIssueOrder(lv_unit, Order(AbilityCommand("SpineCrawlerUproot", 0)), c_orderQueueReplace);
UnitIssueOrder(lv_unit, Order(AbilityCommand("SporeCrawlerUproot", 0)), c_orderQueueReplace);
lv_angle = AngleBetweenPoints(UnitGetPosition(gv_tHEONEZERATUL), UnitGetPosition(lv_unit));
lv_angle = (lv_angle + RandomFixed(-20.0, 20.0));
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_unit), 10.0, lv_angle)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:9088
UnitIssueOrder(EventUnitProgressUnit(), OrderTargetingPoint(AbilityCommand("move", 0), gv_cinematicKarassZealotRally), c_orderQueueReplace);
gv_cinematicKarassZealotRally = PointWithOffsetPolar(gv_cinematicKarassZealotRally, 1.5, AngleBetweenPoints(PointFromId(189), PointFromId(1712)));
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:1798
lv_initialOffsetPoint = PointWithOffset(gv_terraTronPosition, lp_xOffset, lp_yOffset);
lv_distanceBetweenPoints = DistanceBetweenPoints(gv_terraTronPosition, lv_initialOffsetPoint);
lv_angleBetweenPoints = AngleBetweenPoints(gv_terraTronPosition, lv_initialOffsetPoint);
lv_scaledDistance = (lv_distanceBetweenPoints * gv_terraTronScale);
lv_finalOffsetPoint = PointWithOffsetPolar(gv_terraTronPosition, lv_scaledDistance, lv_angleBetweenPoints);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3104
}
if ((PointGetX(lv_posNext) != PointGetX(lv_posCur)) && (PointGetY(lv_posNext) != PointGetY(lv_posCur))) {
lv_posNext = PointWithOffsetPolar(lv_posCur, lv_moveUnit, AngleBetweenPoints(lv_posCur, lv_posNext));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:4935
lv_posInterceptor = UnitGetPosition(lv_interceptor);
lv_posViking = UnitGetPosition(gv_viking);
lv_angle = AngleBetweenPoints(lv_posInterceptor, lv_posViking);
if ((UnitIsAlive(gv_viking) == true) && (RandomInt(1, 3) == 1)) {
lv_target = PointWithOffsetPolar(lv_posInterceptor, 30.0, lv_angle);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6325
}
if ((lv_facingViking == true) && (UnitIsAlive(gv_viking) == true)) {
libNtve_gf_MakeUnitFacePoint(lv_plane, UnitGetPosition(gv_viking), (AbsF((UnitGetFacing(lv_plane) - AngleBetweenPoints(lv_posCurrent, UnitGetPosition(gv_viking)))) / 30.0));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6338
else {
}
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6429
lv_outerBounds = gf_GetOuterBoundary();
lv_posCurrent = UnitGetPosition(lv_plane);
lv_posFinish = PointWithOffsetPolar(lv_posCurrent, 30.0, AngleBetweenPoints(lv_posCurrent, lv_posFinish));
UnitIssueOrder(lv_plane, OrderTargetingPoint(AbilityCommand("move", 0), lv_posFinish), c_orderQueueReplace);
lv_shootDelay = RandomInt(4, 12);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6439
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (lv_index == lv_shootDelay)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6535
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (gf_CurrentLevel() != 3)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6548
lv_outerBounds = gf_GetOuterBoundary();
lv_posCurrent = UnitGetPosition(lv_plane);
lv_posFinish = PointWithOffsetPolar(lv_posCurrent, 30.0, AngleBetweenPoints(lv_posCurrent, lv_posFinish));
UnitIssueOrder(lv_plane, OrderTargetingPoint(AbilityCommand("move", 0), lv_posFinish), c_orderQueueReplace);
lv_shootDelay = RandomInt(20, 36);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6558
}
if ((lv_waveInfo.lv_bullet > 0) && (UnitIsAlive(gv_viking) == true) && (gf_CurrentLevel() == 3) && (lv_index == lv_shootDelay)) {
lv_shootAngle = AngleBetweenPoints(UnitGetPosition(lv_plane), UnitGetPosition(gv_viking));
if ((lv_waveInfo.lv_bulletTargetFighter == false)) {
lv_shootAngle = RandomFixed((lv_shootAngle - 45.0), (lv_shootAngle + 45.0));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:3733
UnitSetCustomValue(autoE914C699_var, 0, 0.0);
}
lv_anglebetweentruckship = (AngleBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(gv_activeCivilianShip)) + 180.0);
UnitIssueOrder(EventUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("Rally", 0), UnitGetPosition(gv_activeCivilianShip)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:4532
}
TriggerExecute(gt_IntroFeederlingMover, true, false);
libNtve_gf_UnitCreateFacingPoint(1, "BroodLord", 0, gv_p07_ZERG_INFESTED, PointWithOffsetPolar(PointFromId(4173), lv_broodLordDistance, AngleBetweenPoints(PointFromId(644), PointFromId(4173))), UnitGetPosition(UnitFromId(97)));
lv_broodLord1 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:4535
lv_broodLord1 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord1);
libNtve_gf_UnitCreateFacingPoint(1, "BroodLord", 0, gv_p07_ZERG_INFESTED, PointWithOffsetPolar(PointFromId(565), lv_broodLordDistance, AngleBetweenPoints(PointFromId(645), PointFromId(565))), UnitGetPosition(UnitFromId(96)));
lv_broodLord2 = UnitLastCreated();
UnitGroupAdd(gv_introSpawnedUnits, lv_broodLord2);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:379
lv_distanceRemaining = lv_seperationDistance;
if ((lv_seperationDistance <= DistanceBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(lv_currentPoint, lv_seperationDistance, AngleBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:390
if ((lv_distanceRemaining <= DistanceBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(gv_trainPath[lv_currentTarget], lv_distanceRemaining, AngleBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]));
break;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:397
}
}
PointSetFacing(lv_currentPoint, AngleBetweenPoints(lv_currentPoint, gv_trainPath[lv_currentTarget]));
return lv_currentPoint;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:577
lv_distanceRemaining = lv_seperationDistance;
if ((lv_seperationDistance <= DistanceBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(lv_currentPoint, lv_seperationDistance, AngleBetweenPoints(lv_currentPoint, gv_trainPath[(lv_currentTarget - 1)]));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:588
if ((lv_distanceRemaining <= DistanceBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]))) {
lv_currentPoint = PointWithOffsetPolar(gv_trainPath[lv_currentTarget], lv_distanceRemaining, AngleBetweenPoints(gv_trainPath[lv_currentTarget], gv_trainPath[(lv_currentTarget - 1)]));
break;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2155
}
UnitIssueOrder(auto499A4BF2_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto499A4BF2_var), 1.0, AngleBetweenPoints(UnitGetPosition(auto499A4BF2_var), gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))]))), c_orderQueueReplace);
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:5912
auto9586D451_var = UnitGroupUnitFromEnd(auto9586D451_g, auto9586D451_u);
if (auto9586D451_var == null) { break; }
UnitSetPosition(auto9586D451_var, PointWithOffsetPolar(UnitGetPosition(auto9586D451_var), -3.0, AngleBetweenPoints(UnitGetPosition(auto9586D451_var), UnitGetPosition(lv_crate))), true);
}
lv_i = 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:5940
auto9C174672_var = UnitGroupUnitFromEnd(auto9C174672_g, auto9C174672_u);
if (auto9C174672_var == null) { break; }
UnitIssueOrder(auto9C174672_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto9C174672_var), (DistanceBetweenPoints(UnitGetPosition(auto9C174672_var), UnitGetPosition(lv_crate)) - 1.5), AngleBetweenPoints(UnitGetPosition(auto9C174672_var), UnitGetPosition(lv_crate)))), c_orderQueueReplace);
}
TriggerExecute(gt_VictoryCapsuleAnimation, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2557
UnitSetCustomValue(lv_scientist, 0, 1.0);
if ((lv_scientist == EventUnit())) {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnitDamageSourceUnit()), UnitGetPosition(lv_scientist));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2560
}
else {
lv_angle = AngleBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(lv_scientist));
}
lv_whereToRun = PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(3.0, 9.0), (lv_angle + RandomFixed(-20.0, 20.0)));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2616
if ((UnitGroupCount(lv_intruderGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_intruderGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2672
if ((UnitGroupCount(lv_brutaliskGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_brutaliskGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2map — MapScript.galaxy:2728
if ((UnitGroupCount(lv_hybridGroup, c_unitCountAlive) > 0)) {
UnitSetCustomValue(lv_scientist, 0, 1.0);
lv_whereToRun = libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_hybridGroup, 1))) + 180.0)));
UnitBehaviorAdd(lv_scientist, "Run", lv_scientist, 1);
UnitIssueOrder(lv_scientist, OrderTargetingPoint(AbilityCommand("move", 0), lv_whereToRun), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3713
lv_sourceAfterScaled = Point((lv_x1 + ((lv_x2 - lv_x1) * lp_xRatio)), (lv_y1 + ((lv_y2 - lv_y1) * lp_yRatio)));
lv_dis = DistanceBetweenPoints(lp_sourceCenter, lv_sourceAfterScaled);
lv_angel = AngleBetweenPoints(lp_sourceCenter, lv_sourceAfterScaled);
lv_angel += lp_rotate;
lv_ret = PointWithOffsetPolar(lp_targetCenter, lv_dis, lv_angel);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:771
UnitGroupAdd(gv_cellBlockAJerksGroup, autoA878FA45_var);
UnitSetCustomValue(autoA878FA45_var, 0, DistanceBetweenPoints(UnitGetPosition(autoA878FA45_var), PointFromId(1140)));
UnitSetCustomValue(autoA878FA45_var, 1, AngleBetweenPoints(PointFromId(1140), UnitGetPosition(autoA878FA45_var)));
}
TriggerExecute(gt_CellBlockAPatrol, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:2357
lv_a = UnitGetPosition(gv_tHEONEDRILL);
lv_b = UnitGetPosition(gv_laserDrillTargetUnit);
lv_facing = AngleBetweenPoints(lv_a, lv_b);
lv_d = DistanceBetweenPoints(lv_a, lv_b);
lv_di = FixedToInt((lv_d / 5.0));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:596
UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);
if ((UnitGetType(lp_activatedunit) == "Infestor")) {
UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("InfestedTerrans", 0), RegionRandomPoint(RegionCircle(PointWithOffsetPolar(UnitGetPosition(lp_activatedunit), (DistanceBetweenPoints(lv_rallypoint, UnitGetPosition(lp_activatedunit)) - 2.0), AngleBetweenPoints(UnitGetPosition(lp_activatedunit), lv_rallypoint)), 1.5))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:8319
UnitIssueOrder(auto8DBA43E6_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
if ((UnitGetCustomValue(auto8DBA43E6_var, 0) < libNtve_gf_DifficultyValueFixed(3.0, 3.0, 4.0, 5.0))) {
UnitIssueOrder(auto8DBA43E6_var, OrderTargetingPoint(AbilityCommand("InfestedTerrans", 0), RegionRandomPoint(RegionCircle(PointWithOffsetPolar(UnitGetPosition(auto8DBA43E6_var), (DistanceBetweenPoints(lv_rallypoint, UnitGetPosition(auto8DBA43E6_var)) - 2.0), AngleBetweenPoints(UnitGetPosition(auto8DBA43E6_var), lv_rallypoint)), 1.5))), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:10595
UnitGroupAdd(gv_cinematicReinforcements, UnitLastCreated());
libNtve_gf_ChangeUnitDamage(UnitLastCreated(), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_Minimal);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(UnitLastCreated()), 5.0, AngleBetweenPoints(UnitGetPosition(UnitLastCreated()), PointFromId(2223)))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:5617
autoE89A9445_var = UnitGroupUnitFromEnd(autoE89A9445_g, autoE89A9445_u);
if (autoE89A9445_var == null) { break; }
UnitSetPosition(autoE89A9445_var, PointWithOffsetPolar(UnitGetPosition(autoE89A9445_var), 6.0, AngleBetweenPoints(UnitGetPosition(gv_artifact), UnitGetPosition(autoE89A9445_var))), false);
}
auto6239B03C_g = UnitGroup(null, gv_pLAYER_ZERG_MAIN, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:2778
if (auto45ED8A27_var == null) { break; }
UnitIssueOrder(auto45ED8A27_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto45ED8A27_var, 1) + 0.2), (UnitGetCustomValue(auto45ED8A27_var, 1) - 0.2)), (UnitGetCustomValue(auto45ED8A27_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto45ED8A27_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto45ED8A27_var)));
}
auto11B330CC_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:2786
if (auto11B330CC_var == null) { break; }
UnitIssueOrder(auto11B330CC_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto11B330CC_var, 1) + 0.2), (UnitGetCustomValue(auto11B330CC_var, 1) - 0.2)), (UnitGetCustomValue(auto11B330CC_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto11B330CC_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto11B330CC_var)));
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:3617
if (auto4DA823A6_var == null) { break; }
UnitIssueOrder(auto4DA823A6_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(548), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto4DA823A6_var, 1) + 0.2), (UnitGetCustomValue(auto4DA823A6_var, 1) - 0.2)), (UnitGetCustomValue(auto4DA823A6_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto4DA823A6_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(548), 0.0, -1.5), UnitGetPosition(auto4DA823A6_var)));
}
autoE853CE9F_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:3625
if (autoE853CE9F_var == null) { break; }
UnitIssueOrder(autoE853CE9F_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(548), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoE853CE9F_var, 1) + 0.2), (UnitGetCustomValue(autoE853CE9F_var, 1) - 0.2)), (UnitGetCustomValue(autoE853CE9F_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoE853CE9F_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(548), 0.0, -1.5), UnitGetPosition(autoE853CE9F_var)));
}
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:6358
if (auto3847C7E3_var == null) { break; }
UnitIssueOrder(auto3847C7E3_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto3847C7E3_var, 1) + 0.2), (UnitGetCustomValue(auto3847C7E3_var, 1) - 0.2)), (UnitGetCustomValue(auto3847C7E3_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto3847C7E3_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto3847C7E3_var)));
}
auto190E44E5_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:6366
if (auto190E44E5_var == null) { break; }
UnitIssueOrder(auto190E44E5_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), RandomFixed((UnitGetCustomValue(auto190E44E5_var, 1) + 0.2), (UnitGetCustomValue(auto190E44E5_var, 1) - 0.2)), (UnitGetCustomValue(auto190E44E5_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(auto190E44E5_var, 0, AngleBetweenPoints(PointWithOffset(UnitGetPosition(gv_tHEONEZERATUL), 0.0, -1.5), UnitGetPosition(auto190E44E5_var)));
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:6376
if (autoE8B100A8_var == null) { break; }
UnitIssueOrder(autoE8B100A8_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(664), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoE8B100A8_var, 1) + 0.2), (UnitGetCustomValue(autoE8B100A8_var, 1) - 0.2)), (UnitGetCustomValue(autoE8B100A8_var, 0) + 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoE8B100A8_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(664), 0.0, -1.5), UnitGetPosition(autoE8B100A8_var)));
}
autoCE0E774C_g = gv_zergEncircleGroupRight;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:6384
if (autoCE0E774C_var == null) { break; }
UnitIssueOrder(autoCE0E774C_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(PointWithOffset(PointFromId(664), 0.0, -1.5), RandomFixed((UnitGetCustomValue(autoCE0E774C_var, 1) + 0.2), (UnitGetCustomValue(autoCE0E774C_var, 1) - 0.2)), (UnitGetCustomValue(autoCE0E774C_var, 0) - 30.0))), c_orderQueueReplace);
UnitSetCustomValue(autoCE0E774C_var, 0, AngleBetweenPoints(PointWithOffset(PointFromId(664), 0.0, -1.5), UnitGetPosition(autoCE0E774C_var)));
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7522
UnitIssueOrder(lv_unit, Order(AbilityCommand("SpineCrawlerUproot", 0)), c_orderQueueReplace);
UnitIssueOrder(lv_unit, Order(AbilityCommand("SporeCrawlerUproot", 0)), c_orderQueueReplace);
lv_angle = AngleBetweenPoints(UnitGetPosition(gv_tHEONEZERATUL), UnitGetPosition(lv_unit));
lv_angle = (lv_angle + RandomFixed(-20.0, 20.0));
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_unit), 10.0, lv_angle)), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:9088
UnitIssueOrder(EventUnitProgressUnit(), OrderTargetingPoint(AbilityCommand("move", 0), gv_cinematicKarassZealotRally), c_orderQueueReplace);
gv_cinematicKarassZealotRally = PointWithOffsetPolar(gv_cinematicKarassZealotRally, 1.5, AngleBetweenPoints(PointFromId(189), PointFromId(1712)));
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:4432
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER);
UnitGroupAdd(gv_hunterPlayerUnitGroup, UnitLastCreated());
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(RegionGetCenter(RegionFromId(11)), DistanceBetweenPoints(UnitGetPosition(UnitLastCreated()), RegionGetCenter(RegionFromId(7))), AngleBetweenPoints(RegionGetCenter(RegionFromId(7)), UnitGetPosition(UnitLastCreated())))), c_orderQueueReplace);
}
UnitClearSelection(gv_pLAYER_01_USER);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:1233
UnitGroupLoopBegin(gv_swarmlingMassWave);
while (!UnitGroupLoopDone()) {
lv_newLoc = PointWithOffsetPolar(PointFromId(851), DistanceBetweenPoints(RegionGetCenter(RegionFromId(1)), UnitGetPosition(UnitGroupLoopCurrent())), AngleBetweenPoints(RegionGetCenter(RegionFromId(1)), UnitGetPosition(UnitGroupLoopCurrent())));
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:674
for (auto71964A15_i = 1; auto71964A15_i <= auto71964A15_n; auto71964A15_i += 1) {
UnitCreate(1, "Baneling", c_unitCreateIgnorePlacement, gv_pLAYER_01_USER, RegionRandomPoint(lp_region), libNtve_gf_RandomAngle());
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(UnitLastCreated()), RandomFixed(1.0, 2.0), AngleBetweenPoints(RegionGetCenter(lp_region), UnitGetPosition(UnitLastCreated())))), c_orderQueueReplace);
UnitGroupAdd(gv_midSpawnedUnits, UnitLastCreated());
if ((gv_midSpawnedUnitsSelected == true) && (UnitGroupCount(UnitGroupSelected(gv_pLAYER_01_USER), c_unitCountAlive) >= 1)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:688
for (auto1A34ECDE_i = 1; auto1A34ECDE_i <= auto1A34ECDE_n; auto1A34ECDE_i += 1) {
UnitCreate(1, "Zergling", c_unitCreateIgnorePlacement, gv_pLAYER_01_USER, RegionRandomPoint(lp_region), libNtve_gf_RandomAngle());
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(UnitLastCreated()), RandomFixed(1.0, 2.0), AngleBetweenPoints(RegionGetCenter(lp_region), UnitGetPosition(UnitLastCreated())))), c_orderQueueReplace);
UnitGroupAdd(gv_midSpawnedUnits, UnitLastCreated());
if ((gv_midSpawnedUnitsSelected == true) && (UnitGroupCount(UnitGroupSelected(gv_pLAYER_01_USER), c_unitCountAlive) >= 1)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:512
lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:514
lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:515
if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
autoD9320D5C_val = RandomInt(1, 2);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:974
lv_foreachint_i = 1;
for ( ; ( (auto904DF92E_ai >= 0 && lv_foreachint_i <= auto904DF92E_ae) || (auto904DF92E_ai < 0 && lv_foreachint_i >= auto904DF92E_ae) ) ; lv_foreachint_i += auto904DF92E_ai ) {
libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingArrow", libNtve_gf_PointOffsetTowardsPoint(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), (lv_distbwpings * IntToFixed(lv_foreachint_i)), lp_endpoint), ColorWithAlpha(100.00, 0.00, 0.00, 24.71), lv_pinglifetime, AngleBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint));
PingSetScale(PingLastCreated(), 0.5);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/19D6601D"));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:9352
}
lv_explosionAngle = AngleBetweenPoints(RegionGetCenter(RegionFromId(56)), PointFromId(446));
UnitKill(UnitFromId(239));
PlayerCreateEffectPoint(gv_pLAYER_01_USER, "EnergyNovaPersistent", RegionGetCenter(RegionFromId(75)));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1326
auto0CF21101_var = 1;
for ( ; auto0CF21101_var <= auto0CF21101_ae; auto0CF21101_var += 1 ) {
PointSetFacing(gv_hybridReleaseLocation[auto0CF21101_var], AngleBetweenPoints(gv_hybridCellLocation[auto0CF21101_var], gv_hybridReleaseLocation[auto0CF21101_var]));
}
gv_hybridUnitArray[1] = UnitFromId(29);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:533
auto0A92F2EA_var = UnitGroupUnitFromEnd(auto0A92F2EA_g, auto0A92F2EA_u);
if (auto0A92F2EA_var == null) { break; }
AIAttackWaveAddEscortUnit(gv_pLAYER_02_DOMINION222, auto0A92F2EA_var, lv_hybrid, DistanceBetweenPoints(UnitGetPosition(auto0A92F2EA_var), UnitGetPosition(lv_hybrid)), (AngleBetweenPoints(UnitGetPosition(lv_hybrid), UnitGetPosition(auto0A92F2EA_var)) - UnitGetFacing(lv_hybrid)));
}
AIAttackWaveSend(gv_pLAYER_02_DOMINION222, 0, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1586
PingSetColor(gv_narudPing, Color(0.00, 100.00, 0.00));
lv_arrowPingDistance = DistanceBetweenPoints(UnitGetPosition(gv_kerrigan), UnitGetPosition(gv_kerrigan22));
lv_angle = AngleBetweenPoints(UnitGetPosition(gv_kerrigan), UnitGetPosition(gv_kerrigan22));
lv_numberOfArrowPings = FloorI((lv_arrowPingDistance / 16.0));
if ((lv_numberOfArrowPings <= 0)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1614
PingSetColor(gv_narudPing, Color(100.00, 0.00, 0.00));
lv_arrowPingDistance = DistanceBetweenPoints(UnitGetPosition(gv_kerrigan2), UnitGetPosition(gv_kerrigan22));
lv_angle = AngleBetweenPoints(UnitGetPosition(gv_kerrigan2), UnitGetPosition(gv_kerrigan22));
lv_numberOfArrowPings = FloorI((lv_arrowPingDistance / 16.0));
if ((lv_numberOfArrowPings <= 0)) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid03.sc2map/MapScript.galaxy:1642
PingSetColor(gv_nullZoneArrowPings[1], Color(75.29, 75.29, 75.29));
PingSetColor(gv_nullZoneArrowPings[2], Color(75.29, 75.29, 75.29));
PingSetPosition(gv_nullZoneArrowPings[1], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan))));
PingSetPosition(gv_nullZoneArrowPings[2], PointWithOffsetPolar(UnitGetPosition(gv_kerrigan22), 12.0, AngleBetweenPoints(UnitGetPosition(gv_kerrigan22), UnitGetPosition(gv_kerrigan2))));
PingSetRotation(gv_nullZoneArrowPings[1], 45.0);