# Point Offset Towards Point
Grammar — sourcePoint|Point offset by distance towards targetPoint|Point
Flags —Function
Returns a point offset by a specified distance toward a target point.
# Arguments
point
— SourcePointfixed
— Distancepoint
— TargetPoint
Returns — point
point libNtve_gf_PointOffsetTowardsPoint(
point lp_sourcePoint,
fixed lp_distance,
point lp_targetPoint,
);
# 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:5962
lv_sawTargetPoint = gf_GetNearestSawTarget(lv_vikingPosition);
}
UnitIssueOrder(gv_terraTronSaw, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(gv_lastSawPosition, 50.0, lv_sawTargetPoint)), c_orderQueueReplace);
TriggerEnable(gt_TerraTronSawBehavior, true);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6023
lv_currentSawPosition = UnitGetPosition(gv_terraTronSaw);
lv_reflectionVector = PointReflect(gv_lastSawPosition, lv_currentSawPosition, lv_reflectionNormalFacing);
lv_newDestination = libNtve_gf_PointOffsetTowardsPoint(lv_currentSawPosition, 50.0, lv_reflectionVector);
UnitIssueOrder(gv_terraTronSaw, OrderTargetingPoint(AbilityCommand("move", 0), lv_newDestination), c_orderQueueReplace);
gv_lastSawPosition = lv_currentSawPosition;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4928
auto5CDEE1E7_var = UnitGroupUnitFromEnd(auto5CDEE1E7_g, auto5CDEE1E7_u);
if (auto5CDEE1E7_var == null) { break; }
UnitIssueOrder(auto5CDEE1E7_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto5CDEE1E7_var), 1.0, Point(47.0, 77.0))), c_orderQueueReplace);
}
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(579), (SoundLengthSync(SoundLink("TRaynor02Adjutant00066", 0)) - 1.0), -1, 10, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2629
if (lv_guard == null) { break; }
if ((UnitGetOwner(lv_guard) == gv_pLAYER02_TOSH) && (RegionContainsPoint(RegionFromId(50), UnitGetPosition(lv_guard)) == false)) {
lv_guardHome = libNtve_gf_PointOffsetTowardsPoint(RegionGetCenter(RegionFromId(50)), 2.0, UnitGetPosition(lv_guard));
autoA7FE5D13_val = UnitGetType(lv_guard);
if (autoA7FE5D13_val == "Raven") {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2377
}
UnitIssueOrder(gv_uNITDaMothership, OrderTargetingPoint(AbilityCommand("attack", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventUnit()), -6.0, UnitGetPosition(gv_uNITDaMothership))), c_orderQueueAddToFront);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:533
Wait(0.1, c_timeGame);
}
libNtve_gf_UnitCreateFacingPoint(lp_qty, lp_type, 0, gv_pLAYER_ZERG_MAIN, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_nydus), 1.0, UnitGetPosition(gv_artifact)), UnitGetPosition(gv_artifact));
auto56D3AD49_g = UnitLastCreatedGroup();
auto56D3AD49_u = UnitGroupCount(auto56D3AD49_g, c_unitCountAll);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1653
gv_hybridBossPing = true;
PingDestroy(gv_pingHybridBoss);
libNtve_gf_CreateModelAtPoint("HybridWarpIn", libNtve_gf_PointOffsetTowardsPoint(PointFromId(181), 0.0, PointFromId(345)));
gv_actorHybridWarpBackEffect = libNtve_gf_ActorLastCreated();
libNtve_gf_CreateModelAtPoint("HybridCDeath", UnitGetPosition(gv_hybridPhysical));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:5962
lv_sawTargetPoint = gf_GetNearestSawTarget(lv_vikingPosition);
}
UnitIssueOrder(gv_terraTronSaw, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(gv_lastSawPosition, 50.0, lv_sawTargetPoint)), c_orderQueueReplace);
TriggerEnable(gt_TerraTronSawBehavior, true);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6023
lv_currentSawPosition = UnitGetPosition(gv_terraTronSaw);
lv_reflectionVector = PointReflect(gv_lastSawPosition, lv_currentSawPosition, lv_reflectionNormalFacing);
lv_newDestination = libNtve_gf_PointOffsetTowardsPoint(lv_currentSawPosition, 50.0, lv_reflectionVector);
UnitIssueOrder(gv_terraTronSaw, OrderTargetingPoint(AbilityCommand("move", 0), lv_newDestination), c_orderQueueReplace);
gv_lastSawPosition = lv_currentSawPosition;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2map — MapScript.galaxy:4928
auto5CDEE1E7_var = UnitGroupUnitFromEnd(auto5CDEE1E7_g, auto5CDEE1E7_u);
if (auto5CDEE1E7_var == null) { break; }
UnitIssueOrder(auto5CDEE1E7_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto5CDEE1E7_var), 1.0, Point(47.0, 77.0))), c_orderQueueReplace);
}
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(579), (SoundLengthSync(SoundLink("TRaynor02Adjutant00066", 0)) - 1.0), -1, 10, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:2629
if (lv_guard == null) { break; }
if ((UnitGetOwner(lv_guard) == gv_pLAYER02_TOSH) && (RegionContainsPoint(RegionFromId(50), UnitGetPosition(lv_guard)) == false)) {
lv_guardHome = libNtve_gf_PointOffsetTowardsPoint(RegionGetCenter(RegionFromId(50)), 2.0, UnitGetPosition(lv_guard));
autoA7FE5D13_val = UnitGetType(lv_guard);
if (autoA7FE5D13_val == "Raven") {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:2377
}
UnitIssueOrder(gv_uNITDaMothership, OrderTargetingPoint(AbilityCommand("attack", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventUnit()), -6.0, UnitGetPosition(gv_uNITDaMothership))), c_orderQueueAddToFront);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:533
Wait(0.1, c_timeGame);
}
libNtve_gf_UnitCreateFacingPoint(lp_qty, lp_type, 0, gv_pLAYER_ZERG_MAIN, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_nydus), 1.0, UnitGetPosition(gv_artifact)), UnitGetPosition(gv_artifact));
auto56D3AD49_g = UnitLastCreatedGroup();
auto56D3AD49_u = UnitGroupCount(auto56D3AD49_g, c_unitCountAll);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:1653
gv_hybridBossPing = true;
PingDestroy(gv_pingHybridBoss);
libNtve_gf_CreateModelAtPoint("HybridWarpIn", libNtve_gf_PointOffsetTowardsPoint(PointFromId(181), 0.0, PointFromId(345)));
gv_actorHybridWarpBackEffect = libNtve_gf_ActorLastCreated();
libNtve_gf_CreateModelAtPoint("HybridCDeath", UnitGetPosition(gv_hybridPhysical));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:4779
auto5598168F_var = 0;
for ( ; auto5598168F_var <= auto5598168F_ae; auto5598168F_var += 1 ) {
lv_revealPoint = libNtve_gf_PointOffsetTowardsPoint(PointFromId(222), (auto5598168F_var * lv_distanceIncrement), PointFromId(13));
VisExploreArea(gv_pLAYER_01_USER, RegionCircle(lv_revealPoint, 8.0), true, false);
}
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/zhybrid01.sc2map/MapScript.galaxy:528
// Automatic Variable Declarations
// Variable Initialization
lv_spawnLocation = libNtve_gf_PointOffsetTowardsPoint(lp_point, -1.0, UnitGetPosition(lp_creator));
// Implementation
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:2966
auto3C34081E_n = libHots_gf_DifficultyValueInt2(4, 4, 3);
for (auto3C34081E_i = 1; auto3C34081E_i <= auto3C34081E_n; auto3C34081E_i += 1) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoE2EEC058_var), 0.5, PointFromId(4)));
}
AIAttackWaveSetTargetUnitGroup(gv_pLAYER_06_INFESTED, gv_sneakAttackTerranBase);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:2994
if ((UnitHasBehavior(auto6CB67634_var, "ColonyInfestation") == true)) {
if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_06_INFESTED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) < libHots_gf_DifficultyValueInt2(200, 200, 150))) {
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(1, 1, 0), "InfestedTerranCampaign", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(3, 3, 3), "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:2996
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(1, 1, 0), "InfestedTerranCampaign", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(3, 3, 3), "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:2954
}
Wait(2.0, c_timeGame);
CameraPan(gv_p01_USER, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_kerrigan), 2.0, PointFromId(1239)), 1.0, -1, 10.0, true);
CameraShakeStart(gv_p01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.07, 2.0, 100.0, 3.0);
UnitKill(UnitFromId(62));
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:4993
autoC7293722_var = UnitGroupUnitFromEnd(autoC7293722_g, autoC7293722_u);
if (autoC7293722_var == null) { break; }
UnitIssueOrder(autoC7293722_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoC7293722_var), 4.0, UnitGetPosition(gv_kerrigan))), c_orderQueueReplace);
UnitSetState(autoC7293722_var, c_unitStateTargetable, false);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:6856
auto6544E1DC_var = UnitGroupUnitFromEnd(auto6544E1DC_g, auto6544E1DC_u);
if (auto6544E1DC_var == null) { break; }
UnitIssueOrder(auto6544E1DC_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6544E1DC_var), 4.0, UnitGetPosition(gv_kerrigan))), c_orderQueueReplace);
UnitSetState(auto6544E1DC_var, c_unitStateTargetable, false);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:411
}
if ((DistanceBetweenPoints(UnitGetPosition(lp_observer), UnitGetPosition(lv_targetUnit)) > 6.0)) {
UnitIssueOrder(lp_observer, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lv_targetUnit), 3.0, UnitGetPosition(lp_observer))), c_orderQueueReplace);
UnitIssueOrder(lp_observer, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:2046
if (auto188EF1B3_var == null) { break; }
if (((UnitGetType(auto188EF1B3_var) == "Zealot") || (UnitGetType(auto188EF1B3_var) == "Stalker"))) {
UnitIssueOrder(auto188EF1B3_var, OrderTargetingPoint(AbilityCommand("attack", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto188EF1B3_var), 10.0, RegionGetCenter(RegionFromId(11)))), c_orderQueueReplace);
UnitGroupAdd(gv_generalAttackers, auto188EF1B3_var);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:4779
auto5598168F_var = 0;
for ( ; auto5598168F_var <= auto5598168F_ae; auto5598168F_var += 1 ) {
lv_revealPoint = libNtve_gf_PointOffsetTowardsPoint(PointFromId(222), (auto5598168F_var * lv_distanceIncrement), PointFromId(13));
VisExploreArea(gv_pLAYER_01_USER, RegionCircle(lv_revealPoint, 8.0), true, false);
}
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/zhybrid01.sc2map — MapScript.galaxy:528
// Automatic Variable Declarations
// Variable Initialization
lv_spawnLocation = libNtve_gf_PointOffsetTowardsPoint(lp_point, -1.0, UnitGetPosition(lp_creator));
// Implementation
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:2966
auto3C34081E_n = libHots_gf_DifficultyValueInt2(4, 4, 3);
for (auto3C34081E_i = 1; auto3C34081E_i <= auto3C34081E_n; auto3C34081E_i += 1) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoE2EEC058_var), 0.5, PointFromId(4)));
}
AIAttackWaveSetTargetUnitGroup(gv_pLAYER_06_INFESTED, gv_sneakAttackTerranBase);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:2994
if ((UnitHasBehavior(auto6CB67634_var, "ColonyInfestation") == true)) {
if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_06_INFESTED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) < libHots_gf_DifficultyValueInt2(200, 200, 150))) {
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(1, 1, 0), "InfestedTerranCampaign", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(3, 3, 3), "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:2996
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(1, 1, 0), "InfestedTerranCampaign", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
libNtve_gf_CreateUnitsWithDefaultFacing(libHots_gf_DifficultyValueInt2(3, 3, 3), "InfestedCivilian", 0, gv_pLAYER_06_INFESTED, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6CB67634_var), 0.5, PointFromId(4)));
AISetGroupSuicide(UnitLastCreatedGroup(), true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:2954
}
Wait(2.0, c_timeGame);
CameraPan(gv_p01_USER, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_kerrigan), 2.0, PointFromId(1239)), 1.0, -1, 10.0, true);
CameraShakeStart(gv_p01_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.07, 2.0, 100.0, 3.0);
UnitKill(UnitFromId(62));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:4993
autoC7293722_var = UnitGroupUnitFromEnd(autoC7293722_g, autoC7293722_u);
if (autoC7293722_var == null) { break; }
UnitIssueOrder(autoC7293722_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoC7293722_var), 4.0, UnitGetPosition(gv_kerrigan))), c_orderQueueReplace);
UnitSetState(autoC7293722_var, c_unitStateTargetable, false);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:6856
auto6544E1DC_var = UnitGroupUnitFromEnd(auto6544E1DC_g, auto6544E1DC_u);
if (auto6544E1DC_var == null) { break; }
UnitIssueOrder(auto6544E1DC_var, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto6544E1DC_var), 4.0, UnitGetPosition(gv_kerrigan))), c_orderQueueReplace);
UnitSetState(auto6544E1DC_var, c_unitStateTargetable, false);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:411
}
if ((DistanceBetweenPoints(UnitGetPosition(lp_observer), UnitGetPosition(lv_targetUnit)) > 6.0)) {
UnitIssueOrder(lp_observer, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lv_targetUnit), 3.0, UnitGetPosition(lp_observer))), c_orderQueueReplace);
UnitIssueOrder(lp_observer, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map — MapScript.galaxy:2046
if (auto188EF1B3_var == null) { break; }
if (((UnitGetType(auto188EF1B3_var) == "Zealot") || (UnitGetType(auto188EF1B3_var) == "Stalker"))) {
UnitIssueOrder(auto188EF1B3_var, OrderTargetingPoint(AbilityCommand("attack", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto188EF1B3_var), 10.0, RegionGetCenter(RegionFromId(11)))), c_orderQueueReplace);
UnitGroupAdd(gv_generalAttackers, auto188EF1B3_var);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:94
}
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, 8.0, lv_t);
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:97
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:625
if ((UnitIsAlive(lp_infestor) == true)) {
if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup9, c_unitCountAlive)), RandomFixed(0.0, 4.0), UnitGetPosition(lp_infestor));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:534
}
else {
RegionSetCenter(lp_movingRegion, libNtve_gf_PointOffsetTowardsPoint(RegionGetCenter(lp_movingRegion), 0.01, RegionGetCenter(RegionEntireMap())));
VisRevealerUpdate(lv_movingRevealer);
Wait(0.25, c_timeGame);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:839
if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0)) {
if ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("PhaseCannon", 0), c_cmdStateCooldown) == false)) {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_karax), 4.0, UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive)));
libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:890
}
else {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_alarak), 4.0, UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak))));
}
libNtve_gf_AICast(lp_alarak, OrderTargetingPoint(AbilityCommand("AlarakKnockback", 0), lv_targetPoint));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:916
}
else {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_vorazun), 5.0, UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun))));
}
libNtve_gf_AICast(lp_vorazun, OrderTargetingPoint(AbilityCommand("VorazunShadowDash", 0), lv_targetPoint));
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:548
lv_currentTarget = lp_point1;
while ((DistanceBetweenPoints(lv_currentTarget, lp_point3) > 1)) {
lv_baseOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_currentTarget, 1.5, lp_point3);
lv_modOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_baseOffsetPoint, 0.5, lp_point2);
UnitIssueOrder(lp_shuttle, OrderTargetingPoint(AbilityCommand("move", 0), lv_modOffsetPoint), c_orderQueueAddToEnd);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:549
while ((DistanceBetweenPoints(lv_currentTarget, lp_point3) > 1)) {
lv_baseOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_currentTarget, 1.5, lp_point3);
lv_modOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_baseOffsetPoint, 0.5, lp_point2);
UnitIssueOrder(lp_shuttle, OrderTargetingPoint(AbilityCommand("move", 0), lv_modOffsetPoint), c_orderQueueAddToEnd);
lv_currentTarget = lv_modOffsetPoint;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:5319
TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
gv_cinematicCompleted = false;
UnitIssueOrder(gv_victoryAlarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_victoryAlarak), 2.0, gv_finalShrineLocation)), c_orderQueueReplace);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
libVCMI_gf_SendTransmissionCampaign(gv_victoryGuardian, "pMission_Taldarim01|Line00094", c_transmissionDurationAdd, 0.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim01.sc2map/MapScript.galaxy:5324
libVCMI_gf_SendTransmissionCampaign(gv_victoryAlarak, "pMission_Taldarim01|Line00095", c_transmissionDurationAdd, 0.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
TriggerExecute(gt_VictoryMusic, true, false);
UnitIssueOrder(gv_victoryAlarak, OrderTargetingPoint(AbilityCommand("DestructionWaveNoOffset", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_victoryAlarak), 3.0, gv_finalShrineLocation)), c_orderQueueReplace);
SoundPlayForPlayer(SoundLink("Event_Tal01Victory_Alarak_QWaveImpact", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(0.6, c_timeGame);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1686
else {
}
UnitIssueOrder(gv_alarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ReverseWaypoint, 1))))), c_orderQueueReplace);
UnitIssueOrder(gv_malash, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ForwardWaypoint, 1))))), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_alarak, UnitGetPosition(gv_malash), 0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1687
}
UnitIssueOrder(gv_alarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ReverseWaypoint, 1))))), c_orderQueueReplace);
UnitIssueOrder(gv_malash, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ForwardWaypoint, 1))))), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_alarak, UnitGetPosition(gv_malash), 0.0);
libNtve_gf_MakeUnitFacePoint(gv_malash, UnitGetPosition(gv_alarak), 0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2565
if (autoF6B58830_var == null) { break; }
lv_unitPoint = UnitGetPosition(autoF6B58830_var);
UnitSetPosition(autoF6B58830_var, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoF6B58830_var), -20.0, UnitGetPosition(gv_kERRIGAN)), false);
libNtve_gf_ShowHideUnit(autoF6B58830_var, true);
UnitIssueOrder(autoF6B58830_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_unitPoint), c_orderQueueReplace);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2620
if (auto850290AD_var == null) { break; }
lv_unitPoint = UnitGetPosition(auto850290AD_var);
UnitSetPosition(auto850290AD_var, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto850290AD_var), -20.0, UnitGetPosition(gv_kERRIGAN)), false);
libNtve_gf_ShowHideUnit(auto850290AD_var, true);
UnitIssueOrder(auto850290AD_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_unitPoint), c_orderQueueReplace);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:625
if ((UnitIsAlive(lp_infestor) == true)) {
if ((UnitGroupCount(lv_enemyGroup9, c_unitCountAlive) > 0)) {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup9, c_unitCountAlive)), RandomFixed(0.0, 4.0), UnitGetPosition(lp_infestor));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:534
}
else {
RegionSetCenter(lp_movingRegion, libNtve_gf_PointOffsetTowardsPoint(RegionGetCenter(lp_movingRegion), 0.01, RegionGetCenter(RegionEntireMap())));
VisRevealerUpdate(lv_movingRevealer);
Wait(0.25, c_timeGame);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:839
if ((UnitGroupCount(lv_enemyGroup10, c_unitCountAlive) > 0)) {
if ((UnitCheckAbilCmdState(lp_karax, AbilityCommand("PhaseCannon", 0), c_cmdStateCooldown) == false)) {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_karax), 4.0, UnitGetPosition(UnitGroupRandomUnit(lv_enemyGroup10, c_unitCountAlive)));
libNtve_gf_AICast(lp_karax, OrderTargetingPoint(AbilityCommand("PhaseCannon", 0), lv_targetPoint));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:890
}
else {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_alarak), 4.0, UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_alarak))));
}
libNtve_gf_AICast(lp_alarak, OrderTargetingPoint(AbilityCommand("AlarakKnockback", 0), lv_targetPoint));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:916
}
else {
lv_targetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_vorazun), 5.0, UnitGetPosition(UnitGroupClosestToPoint(lv_enemyGroup8, UnitGetPosition(lp_vorazun))));
}
libNtve_gf_AICast(lp_vorazun, OrderTargetingPoint(AbilityCommand("VorazunShadowDash", 0), lv_targetPoint));
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:548
lv_currentTarget = lp_point1;
while ((DistanceBetweenPoints(lv_currentTarget, lp_point3) > 1)) {
lv_baseOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_currentTarget, 1.5, lp_point3);
lv_modOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_baseOffsetPoint, 0.5, lp_point2);
UnitIssueOrder(lp_shuttle, OrderTargetingPoint(AbilityCommand("move", 0), lv_modOffsetPoint), c_orderQueueAddToEnd);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:549
while ((DistanceBetweenPoints(lv_currentTarget, lp_point3) > 1)) {
lv_baseOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_currentTarget, 1.5, lp_point3);
lv_modOffsetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_baseOffsetPoint, 0.5, lp_point2);
UnitIssueOrder(lp_shuttle, OrderTargetingPoint(AbilityCommand("move", 0), lv_modOffsetPoint), c_orderQueueAddToEnd);
lv_currentTarget = lv_modOffsetPoint;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2map — MapScript.galaxy:5319
TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
gv_cinematicCompleted = false;
UnitIssueOrder(gv_victoryAlarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_victoryAlarak), 2.0, gv_finalShrineLocation)), c_orderQueueReplace);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
libVCMI_gf_SendTransmissionCampaign(gv_victoryGuardian, "pMission_Taldarim01|Line00094", c_transmissionDurationAdd, 0.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim01.sc2map — MapScript.galaxy:5324
libVCMI_gf_SendTransmissionCampaign(gv_victoryAlarak, "pMission_Taldarim01|Line00095", c_transmissionDurationAdd, 0.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
TriggerExecute(gt_VictoryMusic, true, false);
UnitIssueOrder(gv_victoryAlarak, OrderTargetingPoint(AbilityCommand("DestructionWaveNoOffset", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_victoryAlarak), 3.0, gv_finalShrineLocation)), c_orderQueueReplace);
SoundPlayForPlayer(SoundLink("Event_Tal01Victory_Alarak_QWaveImpact", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
Wait(0.6, c_timeGame);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1686
else {
}
UnitIssueOrder(gv_alarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ReverseWaypoint, 1))))), c_orderQueueReplace);
UnitIssueOrder(gv_malash, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ForwardWaypoint, 1))))), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_alarak, UnitGetPosition(gv_malash), 0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1687
}
UnitIssueOrder(gv_alarak, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ReverseWaypoint, 1))))), c_orderQueueReplace);
UnitIssueOrder(gv_malash, OrderTargetingPoint(AbilityCommand("move", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(gv_tugOfWarBubbleUnit), 1.5, PointFromName(("PathWaypoint" + gf_FormatIntegerIntoMultiDigitString(gv_tugOfWar_ForwardWaypoint, 1))))), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_alarak, UnitGetPosition(gv_malash), 0.0);
libNtve_gf_MakeUnitFacePoint(gv_malash, UnitGetPosition(gv_alarak), 0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2565
if (autoF6B58830_var == null) { break; }
lv_unitPoint = UnitGetPosition(autoF6B58830_var);
UnitSetPosition(autoF6B58830_var, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(autoF6B58830_var), -20.0, UnitGetPosition(gv_kERRIGAN)), false);
libNtve_gf_ShowHideUnit(autoF6B58830_var, true);
UnitIssueOrder(autoF6B58830_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_unitPoint), c_orderQueueReplace);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2620
if (auto850290AD_var == null) { break; }
lv_unitPoint = UnitGetPosition(auto850290AD_var);
UnitSetPosition(auto850290AD_var, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(auto850290AD_var), -20.0, UnitGetPosition(gv_kERRIGAN)), false);
libNtve_gf_ShowHideUnit(auto850290AD_var, true);
UnitIssueOrder(auto850290AD_var, OrderTargetingPoint(AbilityCommand("move", 0), lv_unitPoint), c_orderQueueReplace);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5653
}
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, 10.0, lv_t);
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5656
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5737
}
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, 8.0, lv_t);
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5740
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5821
}
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, 12.0, lv_t);
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5824
lv_finalT = lv_t;
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:720
if ((lib6CB3363F_gv_fT_EquipmentTargetable[lv_equipID] == true)) {
if ((DistanceBetweenPoints(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_player]), Point(lib6CB3363F_gv_fT_MousePosX[lp_player], lib6CB3363F_gv_fT_MousePosY[lp_player])) > lib6CB3363F_gv_fT_EquipmentRange[lv_equipID])) {
UnitCreateEffectPoint(lib6CB3363F_gv_fT_PlayerUnit[lp_player], lv_effect, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_player]), lib6CB3363F_gv_fT_EquipmentRange[lv_equipID], Point(lib6CB3363F_gv_fT_MousePosX[lp_player], lib6CB3363F_gv_fT_MousePosY[lp_player])));
}
else {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:5059
if ((libGame_gv_laneData[lv_lane].lv_minionSpawningEnabled == true)) {
lv_minionType = libCore_gv_dataMinionWaveCompositions[(lv_waveComposition)].lv_groupMinionType[lv_itGroup];
lv_spawnPoint = libNtve_gf_PointOffsetTowardsPoint(lv_basePoint, lv_currentOffsetAmount, lv_offsetPoint);
autoC6F720DF_val = lv_minionType;
if (autoC6F720DF_val == libCore_ge_MinionTypes_Footmen) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:2250
}
else {
lv_centerPoint = libNtve_gf_PointOffsetTowardsPoint(lp_selfPosition, (lv_searchRadius - lv_offsetFromEdge), lp_otherPoint);
}
lv_enemyStructures = UnitGroupSearch(null, lp_selfPlayer, lv_centerPoint, lv_searchRadius, libAIAI_gv_uF_MinionAI_GetNearestEnemyStructure, 0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:277
lv_triangle2C = (lv_targetYToEdgeOfMap / Cos(lv_targetAngle));
if ((lv_triangle1C < lv_triangle2C)) {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle1C * -1.0), lv_casterPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:280
}
else {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle2C * -1.0), lv_casterPoint);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:303
lv_triangle2C = (lv_targetXToEdgeOfMap / Cos(lv_targetAngle));
if ((lv_triangle1C < lv_triangle2C)) {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle1C * -1.0), lv_casterPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:306
}
else {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle2C * -1.0), lv_casterPoint);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:329
lv_triangle2C = (lv_targetYToEdgeOfMap / Cos(lv_targetAngle));
if ((lv_triangle1C < lv_triangle2C)) {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle1C * -1.0), lv_casterPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:332
}
else {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle2C * -1.0), lv_casterPoint);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:355
lv_triangle2C = (lv_targetXToEdgeOfMap / Cos(lv_targetAngle));
if ((lv_triangle1C < lv_triangle2C)) {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle1C * -1.0), lv_casterPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:358
}
else {
lv_abilityTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, (lv_triangle2C * -1.0), lv_casterPoint);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:1310
// Implementation
while ((UnitHasBehavior2(lp_jaina, "JainaWaterElementalCasterBehavior") == true) && (libGame_gv_players[lp_player].lv_activeVehicle != null)) {
UnitIssueOrder(libGDHL_gv_heroJainaWaterElemental[lp_player], OrderTargetingPoint(AbilityCommand("attack", 0), libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(libGame_gv_players[lp_player].lv_activeVehicle), 2.0, UnitGetPosition(libGDHL_gv_heroJainaWaterElemental[lp_player]))), c_orderQueueReplace);
Wait(0.5, c_timeGame);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:2666
// Implementation
if ((libGame_gv_teams[libGame_gf_TeamNumberOfPlayer(lp_player)].lv_core != null)) {
UnitCreate(1, "MurkyRespawnEgg", 0, lp_player, libNtve_gf_PointOffsetTowardsPoint(libGame_gv_players[lp_player].lv_spawnPoint, -1.5, UnitGetPosition(libGame_gv_teams[libGame_gf_TeamNumberOfPlayer(lp_player)].lv_core)), 270.0, null);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:8793
if ((libGame_gv_laneData[lp_lane].lv_minionSpawningEnabled == true)) {
lv_minionType = libCore_gv_dataMinionWaveCompositions[(lp_composition)].lv_groupMinionType[lv_itGroup];
lv_spawnPoint = libNtve_gf_PointOffsetTowardsPoint(lv_basePoint, lv_currentOffsetAmount, lv_offsetPoint);
PointSetFacing(lv_spawnPoint, PointGetFacing(lv_basePoint));
autoEFB6C6D3_ae = libCore_gv_dataMinionWaveCompositions[(lp_composition)].lv_groupMinionCount[lv_itGroup];
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:9227
// Implementation
if ((UnitGetType(libGame_gv_players[lp_killingPlayer].lv_heroUnit) == "HeroTinker") && (UnitHasBehavior2(lp_minion, "UnitGivesNoXP") == false)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "TinkerSalvageScrap", 0, lp_killingPlayer, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_minion), 1.0, UnitGetPosition(libGame_gv_teams[libGame_gf_TeamNumberOfPlayer(UnitGetOwner(lp_minion))].lv_core)), null);
UnitBehaviorAdd(UnitLastCreated(), "TinkerSalvageScrapTimedLife", libGame_gv_players[lp_killingPlayer].lv_heroUnit, 1);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:9237
// Implementation
if ((UnitGetType(libGame_gv_players[lp_killingPlayer].lv_heroUnit) == "HeroTinker") && (UnitBehaviorCount(libGame_gv_players[lp_killingPlayer].lv_heroUnit, "ReduceReuseRecycleCarryBehavior") == 1) && (UnitTypeTestAttribute(UnitGetType(lp_minion), c_unitAttributeStructure) == false)) {
UnitCreateEffectPoint(libGame_gv_players[lp_killingPlayer].lv_heroUnit, "ReduceReuseRecycleCreateUnit", libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lp_minion), 1.0, UnitGetPosition(libGame_gv_teams[libGame_gf_TeamNumberOfPlayer(lp_killingPlayer)].lv_core)));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:12528
while ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_modifiedDistance -= 0.125;
lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(lp_vehicleLocation, lv_modifiedDistance, UnitGetPosition(lv_driverUnit));
}
UnitSetPosition(lv_driverUnit, lv_actualTargetPoint, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16214
if ((libNtve_gf_UnitInRegion(lv_heroUnit, lv_region) == false)) {
lv_targetPoint = UnitGetPosition(lv_heroUnit);
lv_targetPoint2 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
for (auto6A2E3FEE_i = 1; auto6A2E3FEE_i <= auto6A2E3FEE_n; auto6A2E3FEE_i += 1) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16215
lv_targetPoint = UnitGetPosition(lv_heroUnit);
lv_targetPoint2 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
for (auto6A2E3FEE_i = 1; auto6A2E3FEE_i <= auto6A2E3FEE_n; auto6A2E3FEE_i += 1) {
if (((PointPathingPassable(lv_targetPoint) == false) || (PointPathingPassable(lv_targetPoint2) == false) || (PointPathingPassable(lv_targetPoint3) == false) || (RegionContainsPoint(lv_region, lv_targetPoint) == false))) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16220
lv_targetPoint = lv_targetPoint2;
lv_targetPoint2 = lv_targetPoint3;
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16245
if ((libNtve_gf_UnitInRegion(lv_heroUnit, lv_region) == false)) {
lv_targetPoint = UnitGetPosition(lv_heroUnit);
lv_targetPoint2 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
for (autoDCF290EF_i = 1; autoDCF290EF_i <= autoDCF290EF_n; autoDCF290EF_i += 1) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16246
lv_targetPoint = UnitGetPosition(lv_heroUnit);
lv_targetPoint2 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
for (autoDCF290EF_i = 1; autoDCF290EF_i <= autoDCF290EF_n; autoDCF290EF_i += 1) {
if (((PointPathingPassable(lv_targetPoint) == false) || (PointPathingPassable(lv_targetPoint2) == false) || (PointPathingPassable(lv_targetPoint3) == false) || (RegionContainsPoint(lv_region, lv_targetPoint) == false))) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16251
lv_targetPoint = lv_targetPoint2;
lv_targetPoint2 = lv_targetPoint3;
lv_targetPoint3 = libNtve_gf_PointOffsetTowardsPoint(lv_targetPoint2, lv_bufferDistance, libGame_gv_players[lv_player].lv_spawnPoint);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3562
while ((lv_beam_count < lv_beam_fulldistance)) {
lv_beam_count += 1.0;
RegionAddCircle(libMapM_gv_mMGardensDragonSoundRegion, true, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lv_u), lv_beam_count, UnitGetPosition(libMapM_gv_mMGardensDragonDragonTowers[libMapM_gv_mMGardensDragonDragonTowerCount].lv_shrineBeamTargetUnit)), 1.0);
}
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3594
while ((lv_beam_count < lv_beam_fulldistance)) {
lv_beam_count += 1.0;
RegionAddCircle(libMapM_gv_mMGardensDragonSoundRegion, true, libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(lv_u), lv_beam_count, UnitGetPosition(libMapM_gv_mMGardensDragonDragonTowers[libMapM_gv_mMGardensDragonDragonTowerCount].lv_shrineBeamTargetUnit)), 1.0);
}
}
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:2016
}
while ((PointPathingPassable(lv_skullPosition) == false) && (DistanceBetweenPoints(lv_skullPosition, lv_centerOfClosestRegion) >= 1)) {
lv_skullPosition = libNtve_gf_PointOffsetTowardsPoint(lv_skullPosition, 0.5, lv_centerOfClosestRegion);
}
return true;
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:2066
lv_distanceFromBarbarianToPlayerTargetPoint = DistanceBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint);
if ((lv_distanceFromBarbarianToPlayerTargetPoint > lv_abilityRange)) {
lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_abilityRange, lv_playerTargetPoint);
}
else {
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:2074
while ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_modifiedDistance -= 0.125;
lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint);
if ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_actualTargetPoint = PointWithOffsetPolar(libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint), 0.5, (AngleBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint) + 90.0));
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:2076
lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint);
if ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_actualTargetPoint = PointWithOffsetPolar(libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint), 0.5, (AngleBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint) + 90.0));
if ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_actualTargetPoint = PointWithOffsetPolar(libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint), 0.5, (AngleBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint) - 90.0));
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:2078
lv_actualTargetPoint = PointWithOffsetPolar(libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint), 0.5, (AngleBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint) + 90.0));
if ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_actualTargetPoint = PointWithOffsetPolar(libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint), 0.5, (AngleBetweenPoints(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_playerTargetPoint) - 90.0));
if ((PointPathingPassable(lv_actualTargetPoint) == false)) {
lv_actualTargetPoint = libNtve_gf_PointOffsetTowardsPoint(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), lv_modifiedDistance, lv_playerTargetPoint);