# Point With Polar Offset
Grammar — p offset by dist towards angle degrees
Flags —Native
|Function
Returns a point offset by a distance toward an angle, specified in degrees.
# Arguments
point
— Pointfixed
— Distancefixed
— Angle
Returns — point
native point PointWithOffsetPolar(
point p,
fixed distance,
fixed angle,
);
# Related
Category: Point / Offsets
- Point Facing Angle —
point
— libNtve_gf_PointFacingAngle - Point With Z Offset —
point
— libNtve_gf_PointWithZOffset - Point With Offset —
point
— PointWithOffset - Point With Polar Offset —
point
— PointWithOffsetPolar - Point Offset Towards Point —
point
— libNtve_gf_PointOffsetTowardsPoint - Random Point Between Points —
point
— libNtve_gf_RandomPointBetweenPoints - Reflected Point —
point
— PointReflect - Interpolated Point —
point
— PointInterpolate - Mid-Point —
point
— MidPoint
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:663
for ( ; ( (auto9DCA9D7B_ai >= 0 && lv_index <= auto9DCA9D7B_ae) || (auto9DCA9D7B_ai <= 0 && lv_index >= auto9DCA9D7B_ae) ) ; lv_index += auto9DCA9D7B_ai ) {
Wait(0.0125, c_timeGame);
UnitSetPosition(gv_viking, PointWithOffsetPolar(lv_pos, (0.8 * IntToFixed(lv_index)), 90.0), true);
}
gf_FadeInOutWithPicture(false, 1.5, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1800
lv_angleBetweenPoints = AngleBetweenPoints(gv_terraTronPosition, lv_initialOffsetPoint);
lv_scaledDistance = (lv_distanceBetweenPoints * gv_terraTronScale);
lv_finalOffsetPoint = PointWithOffsetPolar(gv_terraTronPosition, lv_scaledDistance, lv_angleBetweenPoints);
UnitCreate(1, "SS_TerraTronMissileLauncher", c_unitCreateIgnorePlacement, UnitGetOwner(gv_boss), lv_finalOffsetPoint, (lp_facing - 90.0));
libNtve_gf_AttachActorToUnit(gv_boss, "SS_TerraTronMissileLaunch", lp_launchAttachPoint);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2995
else {
}
lv_newLoc = PointWithOffsetPolar(lv_center, RandomFixed(3.0, 4.0), libNtve_gf_RandomAngle());
UnitIssueOrder(lp_powerup, OrderTargetingPoint(AbilityCommand("move", 0), lv_newLoc), c_orderQueueReplace);
Wait(RandomFixed(4.0, 7.0), c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3014
UnitBehaviorRemove(lp_powerup, "SS_PowerupMorphToStrongerMissiles", 1);
}
lv_newLoc = PointWithOffsetPolar(UnitGetPosition(lp_powerup), 30.0, 270.0);
UnitIssueOrder(lp_powerup, OrderTargetingPoint(AbilityCommand("move", 0), lv_newLoc), c_orderQueueReplace);
Wait(10.0, c_timeGame);
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:4937
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);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4940
}
else {
lv_target = PointWithOffsetPolar(lv_posInterceptor, 30.0, RandomFixed((lv_angle - 30.0), (lv_angle + 30.0)));
}
lv_modifiedPoint = libNtve_gf_PointFromXYZ(PointGetX(lv_target), PointGetY(lv_target), 15.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6344
else {
}
gf_MobAttack(lv_plane, PointWithOffsetPolar(UnitGetPosition(lv_plane), 30.0, lv_shootAngle));
}
else {
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:6445
else {
}
gf_MobAttack(lv_plane, PointWithOffsetPolar(UnitGetPosition(lv_plane), 30.0, lv_shootAngle));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1273
if (auto5E2EB195_var == null) { break; }
if ((RandomInt(1, 3) == 1)) {
lv_tempPoint = PointWithOffsetPolar(UnitGetPosition(auto5E2EB195_var), RandomFixed(0.5, 1.5), RandomFixed(0.0, 360.0));
if ((RegionContainsPoint(RegionFromId(37), lv_tempPoint) == true)) {
UnitIssueOrder(auto5E2EB195_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_tempPoint), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1428
if (autoCE810A15_var == null) { break; }
if ((RandomInt(1, 5) == 1)) {
lv_tempPoint = PointWithOffsetPolar(UnitGetPosition(autoCE810A15_var), RandomFixed(0.5, 1.5), RandomFixed(0.0, 360.0));
if ((RegionContainsPoint(RegionFromId(14), lv_tempPoint) == true)) {
UnitIssueOrder(autoCE810A15_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_tempPoint), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3830
UnitIssueOrder(lv_unit, Order(AbilityCommand("ColonistShipLiftOff", 0)), c_orderQueueReplace);
Wait(6.0, c_timeGame);
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_unit), 5.0, RandomFixed(30.0, 60.0))), c_orderQueueReplace);
Wait(3.0, c_timeGame);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_unit), c_animNameDefault, "Land Forward", 0, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:5926
auto7CDA312B_var = UnitGroupUnitFromEnd(auto7CDA312B_g, auto7CDA312B_u);
if (auto7CDA312B_var == null) { break; }
UnitIssueOrder(auto7CDA312B_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(auto7CDA312B_var), 6.0, 60.0)), c_orderQueueReplace);
}
auto2FCB8739_g = UnitGroup("ColonistTransport", c_playerAny, RegionFromId(38), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:331
auto107C7AF6_n = lp_count;
for (auto107C7AF6_i = 1; auto107C7AF6_i <= auto107C7AF6_n; auto107C7AF6_i += 1) {
UnitIssueOrder(gv_superWarpGateP04, OrderTargetingPoint(lp_trainCmd, PointWithOffsetPolar(UnitGetPosition(gv_purifier), lp_radius, lv_currentDegree)), c_orderQueueAddToEnd);
lv_currentDegree = (lv_currentDegree + lv_unitInterval);
Wait(0.5, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3242
}
Wait(3.0, c_timeGame);
UnitIssueOrder(lv_colonistShip, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_colonistShip), 5.0, RandomFixed(60.0, 70.0))), c_orderQueueAddToEnd);
Wait(3.0, c_timeGame);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonistShip), c_animNameDefault, "Land Forward", c_animFlagNonLooping, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3359
}
Wait(3.0, c_timeGame);
UnitIssueOrder(lv_colonistShip, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_colonistShip), 5.0, RandomFixed(95.0, 105.0))), c_orderQueueAddToEnd);
Wait(3.0, c_timeGame);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonistShip), c_animNameDefault, "Land Forward", c_animFlagNonLooping, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3476
}
Wait(3.0, c_timeGame);
UnitIssueOrder(lv_colonistShip, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_colonistShip), 5.0, RandomFixed(35.0, 45.0))), c_orderQueueAddToEnd);
Wait(3.0, c_timeGame);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonistShip), c_animNameDefault, "Land Forward", c_animFlagNonLooping, c_animTimeDefault);
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: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:2062
gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort = UnitLastCreated();
AISetUnitScriptControlled(UnitLastCreated(), true);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_waitPosition, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarRadius, (PointGetFacing(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_waitPosition) + gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle))), c_orderQueueReplace);
}
while (true) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2069
lv_i = 1;
for ( ; ( (auto788B0C12_ai >= 0 && lv_i <= auto788B0C12_ae) || (auto788B0C12_ai < 0 && lv_i >= auto788B0C12_ae) ) ; lv_i += auto788B0C12_ai ) {
UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_waitPosition, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarRadius, (PointGetFacing(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_waitPosition) + gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle))), c_orderQueueReplace);
}
if ((UnitIsAlive(gv_trainList[lv_trainIndex].lv_trainCars[1]) == false)) {
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:2518
UnitGroupAdd(lv_escortGroup, gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort);
if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 20.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 160.0)) {
UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 90.0))), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2522
else {
if ((ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) >= 200.0) && (ModF(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_polarAngle, 360.0) <= 340.0)) {
UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 270.0))), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2525
}
else {
UnitIssueOrder(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]), 4.0, (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[gv_trainList[lv_trainIndex].lv_lastCar]) + 180.0))), c_orderQueueReplace);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1552
UnitSetOwner(UnitFromId(8), gv_p01_USER, true);
UnitSetOwner(UnitFromId(292), gv_p01_USER, true);
UnitIssueOrder(UnitFromId(739), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(739)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(292), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(292)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(738), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(738)), 30.0, 45.0)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1553
UnitSetOwner(UnitFromId(292), gv_p01_USER, true);
UnitIssueOrder(UnitFromId(739), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(739)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(292), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(292)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(738), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(738)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(8), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(8)), 30.0, 45.0)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1554
UnitIssueOrder(UnitFromId(739), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(739)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(292), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(292)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(738), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(738)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(8), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(8)), 30.0, 45.0)), c_orderQueueReplace);
TriggerEnable(gt_AfterWraithIntroQ, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1555
UnitIssueOrder(UnitFromId(292), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(292)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(738), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(738)), 30.0, 45.0)), c_orderQueueReplace);
UnitIssueOrder(UnitFromId(8), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(UnitFromId(8)), 30.0, 45.0)), c_orderQueueReplace);
TriggerEnable(gt_AfterWraithIntroQ, true);
Wait(4.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:744
// Implementation
libNtve_gf_CreateUnitsAtPoint2(1, lp_unitType, 0, lp_player, PointWithOffsetPolar(gv_briefingParadePoints[1], lp_polarDistance, (PointGetFacing(gv_briefingParadePoints[1]) + lp_polarRadius)));
UnitGroupAdd(gv_briefingParadeGroup, UnitLastCreated());
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropMovementSpeed, 1.5);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:750
lv_i = 2;
for ( ; ( (auto5E4EFB6A_ai >= 0 && lv_i <= auto5E4EFB6A_ae) || (auto5E4EFB6A_ai < 0 && lv_i >= auto5E4EFB6A_ae) ) ; lv_i += auto5E4EFB6A_ai ) {
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(gv_briefingParadePoints[lv_i], lp_polarDistance, (PointGetFacing(gv_briefingParadePoints[lv_i]) + lp_polarRadius))), c_orderQueueAddToEnd);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2562
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)));
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: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/traynor01.sc2map/MapScript.galaxy:302
// Implementation
UnitIssueOrder(lp_u, OrderTargetingPoint(AbilityCommand("move", 0), lp_targetPoint), lp_queue);
UnitIssueOrder(lp_u, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(lp_targetPoint, 10.0, PointGetFacing(lp_targetPoint))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:5055
lv_i = 1;
for ( ; ( (auto9137C3C2_ai >= 0 && lv_i <= auto9137C3C2_ae) || (auto9137C3C2_ai < 0 && lv_i >= auto9137C3C2_ae) ) ; lv_i += auto9137C3C2_ai ) {
lv_marinePoints1[lv_i] = PointWithOffsetPolar(PointFromId(1306), 1.0, (IntToFixed(lv_i) * 90.0));
lv_marinePoints2[lv_i] = PointWithOffsetPolar(PointFromId(1307), 1.0, (IntToFixed(lv_i) * 90.0));
UnitCreate(1, "Marine", 0, gv_pLAYER_01_USER, lv_marinePoints1[1], 225.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:5056
for ( ; ( (auto9137C3C2_ai >= 0 && lv_i <= auto9137C3C2_ae) || (auto9137C3C2_ai < 0 && lv_i >= auto9137C3C2_ae) ) ; lv_i += auto9137C3C2_ai ) {
lv_marinePoints1[lv_i] = PointWithOffsetPolar(PointFromId(1306), 1.0, (IntToFixed(lv_i) * 90.0));
lv_marinePoints2[lv_i] = PointWithOffsetPolar(PointFromId(1307), 1.0, (IntToFixed(lv_i) * 90.0));
UnitCreate(1, "Marine", 0, gv_pLAYER_01_USER, lv_marinePoints1[1], 225.0);
lv_marineUnits[lv_i] = UnitLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:36
// Implementation
lv_radius = (AbsF((PointGetX(RegionGetBoundsMax(lp_circle)) - PointGetX(RegionGetBoundsMin(lp_circle)))) / 2.0);
return PointWithOffsetPolar(RegionGetCenter(lp_circle), RandomFixed(0.0, lv_radius), libNtve_gf_RandomAngle());
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3657
// Implementation
UnitIssueOrder(lp_unit, OrderTargetingPoint(AbilityCommand("move", 0), lp_targetPoint), lp_orderQueue);
UnitIssueOrder(lp_unit, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(lp_targetPoint, 10.0, PointGetFacing(lp_targetPoint))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3715
lv_angel = AngleBetweenPoints(lp_sourceCenter, lv_sourceAfterScaled);
lv_angel += lp_rotate;
lv_ret = PointWithOffsetPolar(lp_targetCenter, lv_dis, lv_angel);
PointSetFacing(lv_ret, (PointGetFacing(lp_source) + lp_rotate));
return lv_ret;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:26409
gf_ResetActorToLocation(ge_ActorID_ActorRaynor, PointFromId(897));
gf_MakeUnitLookAtPointWithDebugControl(gf_ActorUnit(ge_ActorID_ActorRaynor), "InstantStanding", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 0.5, UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor))), 0.5));
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_bridgeCommunicator), c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, 0.0);
libNtve_gf_SetAnimationCompletion(libNtve_gf_MainActorofUnit(gv_bridgeCommunicator), c_animNameDefault, 100.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:26677
SoundLengthQueryWait();
CameraApplyInfo(1, CameraInfoFromId(394), (SoundLengthSync(SoundLink("CantinaTychusTychus00083", 0)) + 1.0), -1, 20, true);
gf_MakeUnitLookAtPointWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTychus), "VerySlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.6, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTychus)) - 15.0)), 0.65));
Wait(1.0, c_timeReal);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28959
TransmissionWait(TransmissionLastSent(), 0.0);
CameraApplyInfo(1, CameraInfoFromId(1034), 0.0, -1, 10, true);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorRaynor), "SlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 0.4, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor)) + 5.0)), 0.75));
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), false, false, "Talk"), c_invalidPortraitId, SoundLink("TRaynor03BriefingRaynor00004", 0), 0.0, c_transmissionDurationAdd, false);
Wait(0.5, c_timeReal);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28968
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorTychus), false, false, "Talk"), c_invalidPortraitId, SoundLink("TRaynor03BriefingTychus00005", 0), 0.0, c_transmissionDurationAdd, false);
Wait(0.5, c_timeReal);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorRaynor), "InstantHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 0.4, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor)) + 30.0)), 0.75));
CameraApplyInfo(1, CameraInfoFromId(802), 0.0, -1, 10, true);
TransmissionWait(TransmissionLastSent(), 1.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:29829
Wait(0.5, c_timeReal);
CameraApplyInfo(1, CameraInfoFromId(942), 0.0, -1, 10, true);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorRaynor), "SlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 1.0, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor)) + 60.0)), 0.7));
TransmissionWait(TransmissionLastSent(), 4.0);
Wait(4.0, c_timeReal);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:30977
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorTosh), false, false, "Talk"), c_invalidPortraitId, SoundLink("TTosh02BriefingTosh00011", 0), 0.0, c_transmissionDurationAdd, false);
TransmissionWait(TransmissionLastSent(), 1.5);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorTosh), "SlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTosh)), 1.0, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTosh)) + -70.0)), 0.6));
Wait(1.5, c_timeReal);
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), false, false, "Talk"), c_invalidPortraitId, SoundLink("TTosh02BriefingRaynor00004", 0), 0.0, c_transmissionDurationAdd, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:33827
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromUnit(gf_ActorUnit(ge_ActorID_ActorRaynor), false, false, "Talk"), c_invalidPortraitId, SoundLink("ScriptedScenesBridgeRaynor00053", 0), 0.0, c_transmissionDurationAdd, false);
Wait(1.0, c_timeGame);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorHanson), "VerySlowHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorHanson)), 1.0, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorHanson)) + 15.0)), 0.4));
TransmissionWait(TransmissionLastSent(), 0.0);
CameraApplyInfo(1, CameraInfoFromId(296), 0.0, -1, 10, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:36007
TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
gf_MakeUnitLookAtPointAndBlinkWithDebugControl(gf_ActorUnit(ge_ActorID_ActorRaynor), "MedHeadOnly", libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 1.0, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor)) + 60.0)), 0.4));
Wait(0.4, c_timeReal);
CameraApplyInfo(1, CameraInfoFromId(58), 0.0, -1, 10, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:286
// Implementation
UnitIssueOrder(lp_u, OrderTargetingPoint(AbilityCommand("move", 0), lp_targetPoint), lp_queue);
UnitIssueOrder(lp_u, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(lp_targetPoint, 10.0, PointGetFacing(lp_targetPoint))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2253
lv_tempUnit = UnitGroupUnit(lv_patrolGroup, 1);
if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1140), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
lv_movementTarget = PointFromId(1142);
lv_targetCooldown = 10;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2258
}
if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1142), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
lv_movementTarget = PointFromId(1140);
lv_targetCooldown = 10;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2272
auto398840A4_var = UnitGroupUnitFromEnd(auto398840A4_g, auto398840A4_u);
if (auto398840A4_var == null) { break; }
UnitIssueOrder(auto398840A4_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(lv_movementTarget, UnitGetCustomValue(auto398840A4_var, 0), UnitGetCustomValue(auto398840A4_var, 1))), c_orderQueueReplace);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:423
// Automatic Variable Declarations
// Variable Initialization
lv_pointBeyond = PointWithOffsetPolar(lp_moveTarget, 10.0, PointGetFacing(lp_moveTarget));
// Implementation
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:225
lv_i = 1;
for ( ; ( (autoF012CF68_ai >= 0 && lv_i <= autoF012CF68_ae) || (autoF012CF68_ai < 0 && lv_i >= autoF012CF68_ae) ) ; lv_i += autoF012CF68_ai ) {
if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:770
if (auto36505A94_val == 0.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(483)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(483), 1.0, PointGetFacing(PointFromId(483)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 1.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:774
else if (auto36505A94_val == 1.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(484)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(484), 1.0, PointGetFacing(PointFromId(484)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 2.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:778
else if (auto36505A94_val == 2.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(485)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(485), 1.0, PointGetFacing(PointFromId(485)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 3.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:782
else if (auto36505A94_val == 3.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(486)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(486), 1.0, PointGetFacing(PointFromId(486)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 4.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:786
else if (auto36505A94_val == 4.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(487)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(487), 1.0, PointGetFacing(PointFromId(487)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 5.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:790
else if (auto36505A94_val == 5.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(488)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(488), 1.0, PointGetFacing(PointFromId(488)))), c_orderQueueAddToEnd);
}
else if (auto36505A94_val == 6.0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:794
else if (auto36505A94_val == 6.0) {
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(391)), c_orderQueueReplace);
UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(391), 1.0, PointGetFacing(PointFromId(391)))), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
UnitIssueOrder(UnitFromId(317), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(489)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:5500
lv_i = 1;
for ( ; ( (auto7E34D74B_ai >= 0 && lv_i <= auto7E34D74B_ae) || (auto7E34D74B_ai < 0 && lv_i >= auto7E34D74B_ae) ) ; lv_i += auto7E34D74B_ai ) {
UnitSetPosition(UnitGroupUnit(lv_infantryGroup, lv_i), PointWithOffsetPolar(PointFromId(58), 1.5, (IntToFixed(lv_i) * (360.0 / IntToFixed(UnitGroupCount(lv_infantryGroup, c_unitCountAlive))))), false);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:240
auto89D056BF_n = lp_count;
for (auto89D056BF_i = 1; auto89D056BF_i <= auto89D056BF_n; auto89D056BF_i += 1) {
UnitIssueOrder(lp_pickedSuperWarpGate, OrderTargetingPoint(lp_trainCmd, PointWithOffsetPolar(lp_center, lp_radius, lv_currentDegree)), c_orderQueueAddToEnd);
lv_currentDegree = (lv_currentDegree + lv_unitInterval);
Wait(libNtve_gf_DifficultyValueFixed(0.5, 0.5, 0.2, 0.1), c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:3021
autoCF5FA138_val = RandomInt(0, 1);
if (autoCF5FA138_val == 0) {
UnitIssueOrder(lv_droppedBuilding, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_droppedBuilding), 8.0, RandomFixed(195.0, 255.0))), c_orderQueueReplace);
}
else if (autoCF5FA138_val == 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:3024
}
else if (autoCF5FA138_val == 1) {
UnitIssueOrder(lv_droppedBuilding, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lv_droppedBuilding), 8.0, RandomFixed(285.0, 345.0))), c_orderQueueReplace);
}
else {
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:1526
autoCA9643E6_var = UnitGroupUnitFromEnd(autoCA9643E6_g, autoCA9643E6_u);
if (autoCA9643E6_var == null) { break; }
UnitIssueOrder(autoCA9643E6_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(autoCA9643E6_var), 2.0, UnitGetFacing(autoCA9643E6_var))), c_orderQueueReplace);
}
UIAlertPoint("Trigger", gv_p1_USER, StringExternal("Param/Value/1E504DFF"), null, PointFromId(17));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:3667
UnitBehaviorRemove(auto47B466D3_var, "IncapStandUp", 1);
UnitSetFacing(auto47B466D3_var, 315.0, 0.0);
UnitIssueOrder(auto47B466D3_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto47B466D3_var), 2.0, UnitGetFacing(auto47B466D3_var))), c_orderQueueReplace);
UnitSetPropertyFixed(auto47B466D3_var, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(auto47B466D3_var, c_unitPropEnergyPercent, 100.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:4684
autoABAA533D_n = gv__2NydusKillTeamSwarmlingSpawnAmt;
for (autoABAA533D_i = 1; autoABAA533D_i <= autoABAA533D_n; autoABAA533D_i += 1) {
libNtve_gf_CreateUnitsAtPoint2(1, "Swarmling", 0, gv_p2_ZERG, PointWithOffsetPolar(UnitGetPosition(lv_unit), 0.5, RandomFixed(240.0, 300.0)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(954)), c_orderQueueReplace);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(806)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5599
UnitBehaviorRemove(autoB9055DE1_var, "IncapStandUp", 1);
UnitSetFacing(autoB9055DE1_var, 135.0, 0.0);
UnitIssueOrder(autoB9055DE1_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(autoB9055DE1_var), 2.0, UnitGetFacing(autoB9055DE1_var))), c_orderQueueReplace);
UnitSetPropertyFixed(autoB9055DE1_var, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(autoB9055DE1_var, c_unitPropEnergyPercent, 100.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7535
UnitBehaviorRemove(autoA454EC07_var, "IncapStandUp", 1);
UnitSetFacing(autoA454EC07_var, 45.0, 0.0);
UnitIssueOrder(autoA454EC07_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(autoA454EC07_var), 2.0, UnitGetFacing(autoA454EC07_var))), c_orderQueueReplace);
UnitSetPropertyFixed(autoA454EC07_var, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(autoA454EC07_var, c_unitPropEnergyPercent, 100.0);
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:8443
SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lv_unit), 1.0, 100.0, 0.0);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_unit), c_animNameDefault, "Spell", 0, c_animTimeDefault);
libNtve_gf_CreateUnitsAtPoint2(lv_countperpack, lv_type, 0, gv_p2_ZERG, PointWithOffsetPolar(UnitGetPosition(lv_unit), 0.5, 270.0));
auto641429F7_g = UnitLastCreatedGroup();
auto641429F7_u = UnitGroupCount(auto641429F7_g, c_unitCountAll);
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/tvalerian02a.sc2map/MapScript.galaxy:11809
SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lv_nydusWorm), 1.0, 100.0, 0.0);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_nydusWorm), c_animNameDefault, "Spell", 0, c_animTimeDefault);
libNtve_gf_CreateUnitsAtPoint2(3, "Zergling", 0, gv_p2_ZERG, PointWithOffsetPolar(UnitGetPosition(lv_nydusWorm), 0.5, 270.0));
UnitGroupIssueOrder(UnitLastCreatedGroup(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(1425)), c_orderQueueReplace);
UnitGroupIssueOrder(UnitLastCreatedGroup(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(1425)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:1407
auto2382E995_var = UnitGroupUnitFromEnd(auto2382E995_g, auto2382E995_u);
if (auto2382E995_var == null) { break; }
libNtve_gf_AICast(auto2382E995_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(RegionRandomPoint(RegionCircle(UnitGetPosition(gv_leviathan), 8.0)), 8.0, UnitGetFacing(gv_leviathan))));
}
if ((UnitIsAlive(gv_leviathan) == false)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:653
lv_i = 1;
for ( ; ( (autoAD293901_ai >= 0 && lv_i <= autoAD293901_ae) || (autoAD293901_ai < 0 && lv_i >= autoAD293901_ae) ) ; lv_i += autoAD293901_ai ) {
if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:3508
lv_i = 1;
for ( ; ( (auto520D7E8D_ai >= 0 && lv_i <= auto520D7E8D_ae) || (auto520D7E8D_ai < 0 && lv_i >= auto520D7E8D_ae) ) ; lv_i += auto520D7E8D_ai ) {
libNtve_gf_CreateUnitsAtPoint2(1, "HunterKillerBurrowed", 0, gv_pLAYER_ZERG_MAIN, PointWithOffsetPolar(UnitGetPosition(gv_kerrigan), 3.0, ((360.0 / IntToFixed(gv_kerriganEscortNumber)) * IntToFixed(lv_i))));
UnitGroupAdd(lv_hunterKillers, UnitLastCreated());
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4942
lv_tempUnitGroup = UnitGroup(null, gv_pLAYER_USER, RegionFromId(12), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupIssueOrder(lv_tempUnitGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(527)), c_orderQueueReplace);
UnitGroupIssueOrder(lv_tempUnitGroup, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(527), 1.0, PointGetFacing(PointFromId(527)))), c_orderQueueAddToEnd);
lv_tempUnitGroup = UnitGroup(null, gv_pLAYER_USER, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupIssueOrder(lv_tempUnitGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(528)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4945
lv_tempUnitGroup = UnitGroup(null, gv_pLAYER_USER, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitGroupIssueOrder(lv_tempUnitGroup, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(528)), c_orderQueueReplace);
UnitGroupIssueOrder(lv_tempUnitGroup, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(528), 1.0, PointGetFacing(PointFromId(528)))), c_orderQueueAddToEnd);
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(1237), 0.0, -1, 10, true);
Wait(0.1, c_timeGame);
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:456
autoEC97BD8F_n = lv_count;
for (autoEC97BD8F_i = 1; autoEC97BD8F_i <= autoEC97BD8F_n; autoEC97BD8F_i += 1) {
UnitIssueOrder(UnitFromId(326), OrderTargetingPoint(AbilityCommand("SuperWarpGateTrain", 1), PointWithOffsetPolar(RegionGetCenter(lp_mRegion), 2.0, lv_angle)), c_orderQueueReplace);
lv_angle += (360.0 / IntToFixed(lv_count));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2417
auto1C41810C_var = UnitGroupUnitFromEnd(auto1C41810C_g, auto1C41810C_u);
if (auto1C41810C_var == null) { break; }
lv_point = PointWithOffsetPolar(UnitGetPosition(auto1C41810C_var), 50.0, RandomFixed(215.0, 235.0));
libNtve_gf_ShowHideUnit(auto1C41810C_var, true);
libNtve_gf_PauseUnit(auto1C41810C_var, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2630
for (auto83F1D9EE_i = 1; auto83F1D9EE_i <= auto83F1D9EE_n; auto83F1D9EE_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2638
for (autoE0DD90D0_i = 1; autoE0DD90D0_i <= autoE0DD90D0_n; autoE0DD90D0_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2647
for (auto86A986EC_i = 1; auto86A986EC_i <= auto86A986EC_n; auto86A986EC_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2655
for (auto1EE57B14_i = 1; auto1EE57B14_i <= auto1EE57B14_n; auto1EE57B14_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2664
for (auto5407CE2C_i = 1; auto5407CE2C_i <= auto5407CE2C_n; auto5407CE2C_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2672
for (autoFC88027E_i = 1; autoFC88027E_i <= autoFC88027E_n; autoFC88027E_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Scourge", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, lv_maxWrap));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2687
for (auto47EA0C8A_i = 1; auto47EA0C8A_i <= auto47EA0C8A_n; auto47EA0C8A_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Mutalisk", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, 4.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2695
for (auto24AB4CDA_i = 1; auto24AB4CDA_i <= auto24AB4CDA_n; auto24AB4CDA_i += 1) {
lv_real = libNtve_gf_RandomAngle();
libNtve_gf_UnitCreateFacingPoint(1, "Mutalisk", 0, gv_p3_ZERG, PointWithOffsetPolar(UnitGetPosition(gv_tHEONEZERATUL), RandomFixed(15.0, 25.0), lv_real), UnitGetPosition(gv_tHEONEZERATUL));
UnitSetCustomValue(UnitLastCreated(), 0, lv_real);
UnitSetCustomValue(UnitLastCreated(), 1, RandomFixed(lv_minWrap, 4.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:6951
libNtve_gf_GlobalCinematicSetting(false);
CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
libNtve_gf_MakeUnitFacePoint(gv_hybridNeutral, PointWithOffsetPolar(PointFromId(345), 0.0, 0.0), 0.0);
libNtve_gf_PlayAnimation(ActorFromDoodad(DoodadFromId(584)), c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
UnitIssueOrder(gv_preserverPrison01, OrderTargetingUnit(AbilityCommand("SoulChannel", 0), gv_hybridNeutral), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:1289
if ((gv_reinforcementAutoMove == true)) {
UnitIssueOrder(EventUnitProgressUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(EventUnitProgressUnit()), 33.0, 45.0)), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:1292
}
else {
UnitIssueOrder(EventUnitProgressUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(UnitGetPosition(EventUnitProgressUnit()), 22.0, 45.0)), c_orderQueueReplace);
}
return true;