# Position Of Unit

Grammar — Position of u
FlagsNative | Function

Returns the position of a unit.

# Arguments

  • unit — Unit

Returns — point

native point UnitGetPosition(unit inUnit);

Category: Unit / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:75

        3.0, // min score 
        barrageRadius,
        UnitGetPosition(aiUnit),
        AIAbilityFixed(player, c_AB_OdinBarrage, c_fieldRange0)+3, 
        c_unitAttributeNone

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:136

        loop = loop - 1;

        if (PointsInRange(UnitGetPosition(unitToCheck), loc, barrageRadius)) {
            enemyInBarrage = true;
            break;

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:381

        3.0, // min score
        AIEffectFixed(player, c_EF_OmegaStormArea, c_fieldAreaRadius0),
        UnitGetPosition(aiUnit),
        AIAbilityFixed(player, c_AB_QoBOmegaStorm, c_fieldRange0), 
        c_unitAttributeNone

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:473

        3.5, // score
        AIEffectFixed(player, c_EF_BioStatis, c_fieldAreaRadius0),
        UnitGetPosition(aiUnit),
        range,
        c_unitAttributeNone

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:524

        return null;
    }
    airAllies = AINearbyPlaneTest(UnitGetPosition(aiUnit), player, AIAbilityFixed(player, c_AB_HybridAoEStun, c_fieldRange0), c_planeAir, c_unitAllianceAlly);

    filter = UnitFilterStr(AIEffectStr(player, c_EF_HybridStunArea, c_fieldFilters));

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:527


    filter = UnitFilterStr(AIEffectStr(player, c_EF_HybridStunArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), AIEffectFixed(player, c_EF_HybridStunArea, c_fieldAreaRadius0));
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:615


    //  Check for air allies.
    airAllies = AINearbyPlaneTest(UnitGetPosition(aiUnit), player, AIAbilityFixed(player, c_AB_GravitonPrison, c_fieldRange0), c_planeAir, c_unitAllianceAlly);
    AISetFilterCanAttackAlly(filter, c_groundAlliesNearby, airAllies);
    enemyGroup = AIGetFilterGroup(filter, scanGroup);

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:674

        nonHostileBuildings = AIGetFilterGroup(filter, scanGroup);

        airAllies = AINearbyPlaneTest(UnitGetPosition(aiUnit), player, AIAbilityFixed(player, c_AB_PlasmaBlast, c_fieldRange0), c_planeAir, c_unitAllianceAlly);
        AISetFilterCanAttackAlly(filter, c_groundAlliesNearby, airAllies);
    }

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:712

                        AIEffectFixed(player, c_EF_ShockWavePersistent, c_fieldPeriodCount)) );

    airAllies = AINearbyPlaneTest(UnitGetPosition(aiUnit), player, psiShockRange, c_planeAir, c_unitAllianceAlly);

    filter = UnitFilterStr(AIEffectStr(player, c_EF_PsionicShockWaveArea, c_fieldFilters));

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:715


    filter = UnitFilterStr(AIEffectStr(player, c_EF_PsionicShockWaveArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), psiShockRange);
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:657

    Wait(2.0, c_timeGame);
    SoundPlay(SoundLink("LostViking_Thrust", 0), PlayerGroupAll(), 100.0, 0.0);
    lv_pos = UnitGetPosition(gv_viking);
    auto9DCA9D7B_ae = 50;
    auto9DCA9D7B_ai = 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1175


    // Implementation
    lv_posCurrent = UnitGetPosition(gv_boss);
    lv_xNew = (PointGetX(lv_posCurrent) + ((lp_x - PointGetX(lv_posCurrent)) * 0.5));
    lv_targetLoc = Point(MaxF(gf_ConvertShooterXToMapX(5.0), MinF(gf_ConvertShooterXToMapX(15.0), lv_xNew)), gf_ConvertShooterYToMapY(gv_c_LeviathanY));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1675

        while ((lv_pointValid == false)) {
            lv_target = PointWithOffset(lp_center, RandomFixed(-4.0, 4.0), RandomFixed(-1.5, 1.5));
            if ((DistanceBetweenPoints(UnitGetPosition(lp_scienceVessel), lv_target) > 1.5)) {
                lv_pointValid = true;
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1835

    // Implementation
    UnitBehaviorAdd(gv_boss, "SS_TerraTronStun", gv_boss, 1);
    gv_terraTronPosition = UnitGetPosition(gv_boss);
    libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStart ArmAttack Stand,Work,Start,B Stand,Work,B Stand,Work,End,B ContentPlayOnce");
    Wait(4.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1944

    // Implementation
    UnitBehaviorAdd(gv_boss, "SS_TerraTronStun", gv_boss, 1);
    gv_terraTronPosition = UnitGetPosition(gv_boss);
    libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStart ArmAttack Stand,Work,Start,A Stand,Work,A Stand,Work,End,A ContentPlayOnce");
    Wait(4.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2053

    // Implementation
    UnitBehaviorAdd(gv_boss, "SS_TerraTronStun", gv_boss, 1);
    gv_terraTronPosition = UnitGetPosition(gv_boss);
    libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStart ArmAttack Stand,Work,Start,E Stand,Work,E Stand,Work,End,E ContentPlayOnce");
    Wait(4.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2162

    // Implementation
    UnitBehaviorAdd(gv_boss, "SS_TerraTronStun", gv_boss, 1);
    gv_terraTronPosition = UnitGetPosition(gv_boss);
    libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStart ArmAttack Stand,Work,Start,F Stand,Work,F Stand,Work,End,F ContentPlayOnce");
    Wait(4.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2302

    lv_effectMoveSpeed = StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1));
    lv_moveOffset = (lv_effectDuration * lv_effectMoveSpeed);
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "SS_TerraTronBeamTarget", 0, UnitGetOwner(gv_boss), PointWithOffset(UnitGetPosition(gv_boss), -20.0, -20.0));
    lv_beamTarget = UnitLastCreated();
    UnitIssueOrder(gv_boss, OrderTargetingUnit(AbilityCommand("attack", 0), lv_beamTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2309

    Wait(2.0, c_timeGame);
    UnitIssueOrder(gv_boss, OrderTargetingUnit(AbilityCommand("SS_TerraTronBeamAttack", 0), lv_beamTarget), c_orderQueueReplace);
    UnitIssueOrder(lv_beamTarget, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffset(UnitGetPosition(lv_beamTarget), lv_moveOffset, 0.0)), c_orderQueueReplace);
    Wait(lv_effectDuration, c_timeGame);
    libNtve_gf_SendActorMessageToUnit(gv_boss, "AnimBracketStop BeamAttack");

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2329

    lv_effectMoveSpeed = StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "SS_TerraTronBeamTarget", "Speed", 1));
    lv_moveOffset = (lv_effectDuration * lv_effectMoveSpeed * -1.0);
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "SS_TerraTronBeamTarget", 0, UnitGetOwner(gv_boss), PointWithOffset(UnitGetPosition(gv_boss), 20.0, -20.0));
    lv_beamTarget = UnitLastCreated();
    UnitIssueOrder(gv_boss, OrderTargetingUnit(AbilityCommand("attack", 0), lv_beamTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:355

    // Automatic Variable Declarations
    // Implementation
    PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(lp_unit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 5.0);
    UIAlertPoint("Trigger", gv_p1_USER, StringExternal("Param/Value/EB027D65"), null, UnitGetPosition(lp_unit));
    libNtve_gf_RescueUnit(lp_unit, gv_p1_USER, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:356

    // Implementation
    PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(lp_unit), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 5.0);
    UIAlertPoint("Trigger", gv_p1_USER, StringExternal("Param/Value/EB027D65"), null, UnitGetPosition(lp_unit));
    libNtve_gf_RescueUnit(lp_unit, gv_p1_USER, true);
    TriggerExecute(gt_BunkerLineQ, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1173

        auto98FD8F65_var = UnitGroupUnitFromEnd(auto98FD8F65_g, auto98FD8F65_u);
        if (auto98FD8F65_var == null) { break; }
        UnitIssueOrder(auto98FD8F65_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto98FD8F65_var), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)))), c_orderQueueReplace);
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1173

        auto98FD8F65_var = UnitGroupUnitFromEnd(auto98FD8F65_g, auto98FD8F65_u);
        if (auto98FD8F65_var == null) { break; }
        UnitIssueOrder(auto98FD8F65_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto98FD8F65_var), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)))), c_orderQueueReplace);
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1210

        auto182727CD_var = UnitGroupUnitFromEnd(auto182727CD_g, auto182727CD_u);
        if (auto182727CD_var == null) { break; }
        UnitIssueOrder(auto182727CD_var, OrderTargetingUnit(AbilityCommand("attack", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto182727CD_var), UnitGroup("Marine", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }
    return true;

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1525

        }
        else {
            UnitIssueOrder(auto338F5CC8_var, OrderTargetingUnit(AbilityCommand("SCVHarvest", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto338F5CC8_var), UnitGroup("MineralField", 0, RegionCircle(UnitGetPosition(auto338F5CC8_var), 12.0), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1525

        }
        else {
            UnitIssueOrder(auto338F5CC8_var, OrderTargetingUnit(AbilityCommand("SCVHarvest", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto338F5CC8_var), UnitGroup("MineralField", 0, RegionCircle(UnitGetPosition(auto338F5CC8_var), 12.0), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2443

    }

    PingCreate(PlayerGroupSingle(gv_p1_USER), "PingSimple", UnitGetPosition(gv_pingConvoy), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 3.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/214DE41B"));
    Wait(5.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:302

    lv_msg = (lv_msg + StringExternal("Param/Value/F3633763"));
    lv_msg = (lv_msg + StringExternal("Param/Value/4522B9B9"));
    lv_msg = (lv_msg + FixedToText(PointGetX(UnitGetPosition(lp_u)), 0));
    lv_msg = (lv_msg + StringExternal("Param/Value/51A2F511"));
    lv_msg = (lv_msg + FixedToText(PointGetY(UnitGetPosition(lp_u)), 0));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:304

    lv_msg = (lv_msg + FixedToText(PointGetX(UnitGetPosition(lp_u)), 0));
    lv_msg = (lv_msg + StringExternal("Param/Value/51A2F511"));
    lv_msg = (lv_msg + FixedToText(PointGetY(UnitGetPosition(lp_u)), 0));
    lv_msg = (lv_msg + StringExternal("Param/Value/8E58C295"));
    lv_msg = (lv_msg + FixedToText(UnitGetFacing(lp_u), 0));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:335

        gv_nightDefenderPingUnit = lp_attackedStructure;
        TriggerExecute(gt_NightDefenderPing, true, false);
        SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lp_attackedStructure), 0.0, 100.0, 0.0);
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(3, 4, 5, 6), "InfestedCivilian", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        AISetGroupScriptControlled(UnitLastCreatedGroup(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:336

        TriggerExecute(gt_NightDefenderPing, true, false);
        SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lp_attackedStructure), 0.0, 100.0, 0.0);
        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(3, 4, 5, 6), "InfestedCivilian", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        AISetGroupScriptControlled(UnitLastCreatedGroup(), false);
        SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lp_attackedStructure), 0.0, 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:338

        libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(3, 4, 5, 6), "InfestedCivilian", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        AISetGroupScriptControlled(UnitLastCreatedGroup(), false);
        SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lp_attackedStructure), 0.0, 100.0, 0.0);
        if ((gv_infestedBuildingsKilled < 50)) {
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(2, 2, 3, 4), "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:340

        SoundPlayAtPoint(SoundLink("NydusWorm_Unload", -1), PlayerGroupAll(), UnitGetPosition(lp_attackedStructure), 0.0, 100.0, 0.0);
        if ((gv_infestedBuildingsKilled < 50)) {
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(2, 2, 3, 4), "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:344


        if ((gv_infestedBuildingsKilled >= 50) && (gv_infestedBuildingsKilled < 100)) {
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(2, 3, 4, 5), "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:348


        if ((gv_infestedBuildingsKilled >= 100)) {
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(3, 4, 2, 3), "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
            AISetGroupScriptControlled(UnitLastCreatedGroup(), false);
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(0, 0, 1, 1), "InfestedAbomination", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:350

            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(3, 4, 2, 3), "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
            AISetGroupScriptControlled(UnitLastCreatedGroup(), false);
            libNtve_gf_CreateUnitsAtPoint2(libNtve_gf_DifficultyValueInt(0, 0, 1, 1), "InfestedAbomination", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lp_attackedStructure));
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1277


    if ((EventUnit() == gv_infestor1)) {
        VisRevealArea(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(gv_infestor1), 2.0), 5.0, false);
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(gv_infestor1), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
        gv_infestorPing01 = PingLastCreated();

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:389

    for (auto6E2B3EC3_i = 1; auto6E2B3EC3_i <= auto6E2B3EC3_n; auto6E2B3EC3_i += 1) {
        if ((gv_currentWaveSources != null) && (UnitGroupCount(gv_currentWaveSources, c_unitCountAlive) > 0)) {
            UnitIssueOrder(gv_superWarpGateP02, OrderTargetingPoint(lp_trainCmd, UnitGetPosition(UnitGroupRandomUnit(gv_currentWaveSources, c_unitCountAlive))), c_orderQueueReplace);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1012

    }

    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2466)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2466)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing1 = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1013


    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2466)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2466)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing1 = PingLastCreated();
    PingSetScale(gv_nexusPing1, 0.8);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1018

    PingSetTooltip(gv_nexusPing1, StringExternal("Param/Value/B69D5FED"));
    Wait(0.5, c_timeGame);
    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2915)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2915)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing2 = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1019

    Wait(0.5, c_timeGame);
    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2915)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2915)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing2 = PingLastCreated();
    PingSetScale(gv_nexusPing2, 0.8);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1024

    PingSetTooltip(gv_nexusPing2, StringExternal("Param/Value/C8230280"));
    Wait(0.5, c_timeGame);
    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2819)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2819)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing3 = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1025

    Wait(0.5, c_timeGame);
    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(2819)), 5.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(gv_pLAYER01_USER), "PingObjective", UnitGetPosition(UnitFromId(2819)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    gv_nexusPing3 = PingLastCreated();
    PingSetScale(gv_nexusPing3, 0.8);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1162

    UnitIssueOrder(gv_purifier, Order(AbilityCommand("PurifierTogglePower", 1)), c_orderQueueReplace);
    libNtve_gf_ShareVisionofUnit(gv_purifier, true, gv_pLAYER01_USER);
    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(gv_purifier), 6.0), 10.0, false);
    libNtve_gf_AttachModelToUnit(gv_purifier, "MothershipTeleportIn", "Ref_Center");
    SoundPlayAtPoint(SoundLink("Mothership_Birth", -1), PlayerGroupAll(), UnitGetPosition(gv_purifier), 0.0, 100.0, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1164

    VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(gv_purifier), 6.0), 10.0, false);
    libNtve_gf_AttachModelToUnit(gv_purifier, "MothershipTeleportIn", "Ref_Center");
    SoundPlayAtPoint(SoundLink("Mothership_Birth", -1), PlayerGroupAll(), UnitGetPosition(gv_purifier), 0.0, 100.0, 0.0);
    Wait(1.5, c_timeGame);
    libNtve_gf_ShowHideUnit(gv_purifier, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:335

    auto017A7127_n = lp_qty;
    for (auto017A7127_i = 1; auto017A7127_i <= auto017A7127_n; auto017A7127_i += 1) {
        UnitCreate(1, lp_type, 0, gv_p03_VIROPHAGE, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_infestationVirophageUnit[lp_colonyIndex]), 5.0)), libNtve_gf_RandomAngle());
        UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("BurrowDroneUp", 0)), c_orderQueueReplace);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:360

    }
    else {
        gv_infestationVirophageSpot[lp_colonyIndex] = UnitGetPosition(gv_infestationVirophageUnit[lp_colonyIndex]);
        gv_infestationColonyLost[lp_colonyIndex] = true;
        UnitSetCustomValue(gv_infestationVirophageUnit[lp_colonyIndex], 1, IntToFixed(lp_colonyIndex));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:404

        if ((gv_infestationOverlordCount[lp_colonyIndex] < gv_iNFESTATION_OVERLORD_MAX)) {
            gv_infestationOverlordCount[lp_colonyIndex] += 1;
            gv_infestationOverlordLocation[lp_colonyIndex][gv_infestationOverlordCount[lp_colonyIndex]] = UnitGetPosition(lp_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:412

        if ((gv_infestationOverlordCount[lp_colonyIndex] < gv_iNFESTATION_OVERLORD_MAX)) {
            gv_infestationOverseerCount[lp_colonyIndex] += 1;
            gv_infestationOverseerLocation[lp_colonyIndex][gv_infestationOverseerCount[lp_colonyIndex]] = UnitGetPosition(lp_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:419

        if ((gv_infestationDefenderCount[lp_colonyIndex] < gv_iNFESTATION_DEFENDER_MAX)) {
            gv_infestationDefenderCount[lp_colonyIndex] += 1;
            gv_infestationDefenderLocation[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = UnitGetPosition(lp_unit);
            gv_infestationDefenderUnit[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = null;
            gv_infestationDefenderType[lp_colonyIndex][gv_infestationDefenderCount[lp_colonyIndex]] = UnitGetType(lp_unit);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:604

    }

    libNtve_gf_UnitCreateFacingPoint(1, lv_defenderType, 0, gv_p07_ZERG_INFESTED, UnitGetPosition(lp_overlord), gv_infestationDefenderLocation[lp_colonyIndex][lp_defenderIndex]);
    gv_infestationDefenderUnit[lp_colonyIndex][lp_defenderIndex] = UnitLastCreated();
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), gv_infestationDefenderLocation[lp_colonyIndex][lp_defenderIndex]), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:657

    // Implementation
    TimerStart(lv_timeoutTimer, lp_timeout, false, c_timeGame);
    UnitIssueOrder(lp_transport, OrderTargetingPoint(AbilityCommand("OverlordTransport", 2), UnitGetPosition(lp_transport)), c_orderQueueReplace);
    UnitIssueOrder(lp_transport, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
    while (true) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:841

        lv_building = UnitGroupRandomUnit(UnitGroup(null, gv_p05_COLONIST, lp_locale, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
        if ((lv_building != null)) {
            UnitIssueOrder(lv_colonist, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_building)), c_orderQueueReplace);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1128


    GameTimeOfDaySet("08:00:00");
    UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/2733AFE1"), null, UnitGetPosition(UnitFromId(163)));
    libNtve_gf_ClearAnimationOnDoodadsInRegion(RegionPlayableMap(), "HavenTree", "Stand");
    libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionPlayableMap(), "HavenTree", c_animNameDefault, "Stand Work", c_animFlagPlayForever, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2067

        lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));
        if ((lv_eggScale >= gv_eggData[lv_eggType].lv_burstSize)) {
            lv_eggPosition = UnitGetPosition(autoB51C2030_var);
            UnitKill(autoB51C2030_var);
            Wait(0.5, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:431


    gv_diamondbacksRevealed = true;
    VisRevealerCreate(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lp_diamondback), 4.5));
    VisRevealerEnable(VisRevealerLastCreated(), true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(lp_diamondback), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:433

    VisRevealerCreate(gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lp_diamondback), 4.5));
    VisRevealerEnable(VisRevealerLastCreated(), true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(lp_diamondback), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetScale(PingLastCreated(), 0.75);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/EC45B863"));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2075

        }

        if ((RegionContainsPoint(RegionCircle(gv_trainList[lv_trainIndex].lv_escorts[1].lv_waitPosition, 2.0), UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[1])) == true)) {
            auto099CB889_ae = gv_trainList[lv_trainIndex].lv_numberOfCars;
            lv_i = 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2148

        auto499A4BF2_var = UnitGroupUnitFromEnd(auto499A4BF2_g, auto499A4BF2_u);
        if (auto499A4BF2_var == null) { break; }
        if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
            if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
                UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2300

        auto9BF3A280_n = gv_trainMinerals[libNtve_gf_DifficultyValueInt(1, 2, 3, 4)][MinI(gv_trainsDestroyed, 7)];
        for (auto9BF3A280_i = 1; auto9BF3A280_i <= auto9BF3A280_n; auto9BF3A280_i += 1) {
            UnitCreate(1, "PalletMinerals", 0, 0, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[RandomInt(1, gv_trainList[lv_trainIndex].lv_lastCar)]), 2.0)), RandomFixed(0.0, 360.0));
            libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2305

        auto475F7BBB_n = gv_trainGas;
        for (auto475F7BBB_i = 1; auto475F7BBB_i <= auto475F7BBB_n; auto475F7BBB_i += 1) {
            UnitCreate(1, "PalletGas", 0, 0, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[RandomInt(1, gv_trainList[lv_trainIndex].lv_lastCar)]), 2.0)), RandomFixed(0.0, 360.0));
            libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2312

        lv_trainMidPoint = (gv_trainList[lv_trainIndex].lv_lastCar / 2);
        lv_trainMidPoint += 1;
        UnitCreate(1, "AdjutantCapsule", 0, 0, RegionRandomPoint(RegionCircle(UnitGetPosition(gv_trainList[lv_trainIndex].lv_trainCars[lv_trainMidPoint]), 2.0)), (UnitGetFacing(gv_trainList[lv_trainIndex].lv_trainCars[lv_trainMidPoint]) - 90.0));
        libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimClear Birth");
        libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimClear Morph");

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1240


    TriggerEnable(TriggerGetCurrent(), false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(893)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(767)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(894)), 8.0), 6.0, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1241

    TriggerEnable(TriggerGetCurrent(), false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(893)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(767)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(894)), 8.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(UnitFromId(767)), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1242

    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(893)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(767)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(894)), 8.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(UnitFromId(767)), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/2A95D303"));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1243

    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(767)), 8.0), 6.0, false);
    VisRevealArea(gv_p01_USER, RegionCircle(UnitGetPosition(UnitFromId(894)), 8.0), 6.0, false);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(UnitFromId(767)), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/2A95D303"));
    gv_pingCommandCenterSW = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1247

    gv_pingCommandCenterSW = PingLastCreated();
    Wait(0.5, c_timeGame);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(UnitFromId(894)), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/8A9CA656"));
    gv_pingCommandCenterSE = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1251

    gv_pingCommandCenterSE = PingLastCreated();
    Wait(0.5, c_timeGame);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingObjective", UnitGetPosition(UnitFromId(893)), ColorWithAlpha(100.00, 100.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/018921A4"));
    gv_pingCommandCenterNE = PingLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1668

    // Conditions
    if (testConds) {
        if (!((RegionContainsPoint(RegionFromId(47), UnitGetPosition(EventUnit())) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1693

            autoD4B68B02_var = UnitGroupUnitFromEnd(autoD4B68B02_g, autoD4B68B02_u);
            if (autoD4B68B02_var == null) { break; }
            libNtve_gf_AICast(autoD4B68B02_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(47), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1720

    // Conditions
    if (testConds) {
        if (!((RegionContainsPoint(RegionFromId(48), UnitGetPosition(EventUnit())) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1745

            auto70B70FB3_var = UnitGroupUnitFromEnd(auto70B70FB3_g, auto70B70FB3_u);
            if (auto70B70FB3_var == null) { break; }
            libNtve_gf_AICast(auto70B70FB3_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
        }
        autoE44AEF93_g = UnitGroup(null, 2, RegionFromId(58), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:827

        }

        if (!((RegionContainsPoint(RegionFromId(7), UnitGetPosition(EventUnitTarget())) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:838


    TriggerEnable(TriggerGetCurrent(), false);
    auto1FE7BFD6_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto1FE7BFD6_u = UnitGroupCount(auto1FE7BFD6_g, c_unitCountAll);
    for (;; auto1FE7BFD6_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:897


    TriggerEnable(TriggerGetCurrent(), false);
    auto32B93861_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto32B93861_u = UnitGroupCount(auto32B93861_g, c_unitCountAll);
    for (;; auto32B93861_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:938

        }

        if (!((RegionContainsPoint(RegionFromId(9), UnitGetPosition(EventUnitTarget())) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:949


    TriggerEnable(TriggerGetCurrent(), false);
    auto9297DEB2_g = UnitGroup("Scientist", c_playerAny, RegionCircle(UnitGetPosition(EventUnitTarget()), 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto9297DEB2_u = UnitGroupCount(auto9297DEB2_g, c_unitCountAll);
    for (;; auto9297DEB2_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1225

    gv_odinAIPlayerTarget = gv_p04_DOMINION_INFANTRY_A;
    TriggerExecute(gt_CreateOdinBossBar, true, false);
    PingCreate(PlayerGroupSingle(gv_p01_USER), "PingSimple", UnitGetPosition(UnitFromId(2)), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 0.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/95837E29"));
    PingSetUnit(PingLastCreated(), UnitFromId(2));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1411

    AIRemoveUnitFromAnyWaves(UnitFromId(2));
    AISetUnitScriptControlled(UnitFromId(2), false);
    AIAttackWaveSetGatherPoint(gv_p02_TYCHUS, UnitGetPosition(UnitFromId(2)));
    AIAttackWaveSetTargetPlayer(gv_p02_TYCHUS, PlayerGroupSingle(gv_odinAIPlayerTarget));
    AIAttackWaveUseUnit(gv_p02_TYCHUS, UnitFromId(2));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1443

    TriggerExecute(gt_WraithIntro, true, false);
    TriggerExecute(gt_TransmissionBattlecruiserSpawnAttackOdinQ, true, false);
    PingCreate(PlayerGroupSingle(gv_p01_USER), "PingWarning", UnitGetPosition(gv_battlecruiser1), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
    gv_battlecruiserPing1 = PingLastCreated();
    PingSetTooltip(gv_battlecruiserPing1, StringExternal("Param/Value/4CC8F111"));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1448

    PingSetScale(gv_battlecruiserPing1, 0.75);
    PingSetUnit(gv_battlecruiserPing1, gv_battlecruiser1);
    PingCreate(PlayerGroupSingle(gv_p01_USER), "PingWarning", UnitGetPosition(gv_battlecruiser2), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
    gv_battlecruiserPing2 = PingLastCreated();
    PingSetTooltip(gv_battlecruiserPing2, StringExternal("Param/Value/80DE907E"));

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:470


    // Implementation
    lv_numberOfPlayerUnitsByCOP = UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lp_unit), 2.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0), c_unitCountAlive);
    lv_realInterval = 1.0;
    lv_realCurrent = (lv_realInterval * IntToFixed(gv_transmissionProgress[lp_index]));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:503

        lv_realCurrent = (lv_realCurrent + lv_realInterval);
        lv_text2 = FixedToText(lv_realCurrent, 0);
        lv_numberOfPlayerUnitsByCOP = UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lp_unit), 2.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
        if ((lv_numberOfPlayerUnitsByCOP == 0)) {
            gv_transmissionProgress[lp_index] = (gv_transmissionProgress[lp_index] + lv_count);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:514

    gv_transmissionProgress[lp_index] = 150;
    BoardItemSetText(gv_uploadBoard, 2, lp_index, StringExternal("Param/Value/8F385175"));
    TextTagCreate(StringExternal("Param/Value/4111D2AB"), 30, UnitGetPosition(lp_unit), 2.0, true, false, PlayerGroupAll());
    SoundPlay(SoundLink("TUI_ArmoryConsolePurchase", -1), PlayerGroupAll(), 100.0, 0.0);
    TextTagSetVelocity(TextTagLastCreated(), 0.75, 90.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1357


    Wait(0.5, c_timeGame);
    autoC0A4CB95_g = UnitGroup(null, gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter((1 << c_targetFilterBiological), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoC0A4CB95_u = UnitGroupCount(autoC0A4CB95_g, c_unitCountAll);
    for (;; autoC0A4CB95_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1366

            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoC0A4CB95_var), c_animNameDefault, "Fidget Inferior End", 0, c_animTimeDefault);
            UnitBehaviorAdd(autoC0A4CB95_var, "Run", autoC0A4CB95_var, 1);
            UnitIssueOrder(autoC0A4CB95_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("Hut", gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(EventUnit()), 50.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2120

    }

    auto4D3A1C8E_g = UnitGroup(null, gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(gv_odin), 10.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto4D3A1C8E_u = UnitGroupCount(auto4D3A1C8E_g, c_unitCountAll);
    for (;; auto4D3A1C8E_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2132


    }
    autoA22A473B_g = UnitGroup(null, 0, RegionCircle(UnitGetPosition(gv_odin), 2.75), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoA22A473B_u = UnitGroupCount(autoA22A473B_g, c_unitCountAll);
    for (;; autoA22A473B_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2142


    }
    auto18D9D224_g = UnitGroup(null, gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(gv_odin), 2.75), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto18D9D224_u = UnitGroupCount(auto18D9D224_g, c_unitCountAll);
    for (;; auto18D9D224_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2246

        }

        if (!((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_secretDocuments), 2.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2368


    lv_chosenUnit = gv_pickedUnit;
    TextTagCreate(StringExternal("Param/Value/B35796C7"), 30, UnitGetPosition(lv_chosenUnit), 1.0, true, false, PlayerGroupAll());
    TextTagAttachToUnit(TextTagLastCreated(), lv_chosenUnit, 1.0);
    TextTagSetVelocity(TextTagLastCreated(), 1.0, 90.0);