# UnitGroupUnitFromEnd

FlagsNative

# Arguments

  • unitgroup — inGroup
  • int — inIndex

Returns — unit

native unit UnitGroupUnitFromEnd(
	unitgroup inGroup,
	int inIndex,
);

Category: Unclassified

# Examples

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

    autoC43E849B_u = UnitGroupCount(autoC43E849B_g, c_unitCountAll);
    for (;; autoC43E849B_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(autoC43E849B_g, autoC43E849B_u);
        if (lv_u == null) { break; }
        UnitSetOwner(lv_u, lp_player, true);

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

    auto142C38A1_u = UnitGroupCount(auto142C38A1_g, c_unitCountAll);
    for (;; auto142C38A1_u -= 1) {
        auto142C38A1_var = UnitGroupUnitFromEnd(auto142C38A1_g, auto142C38A1_u);
        if (auto142C38A1_var == null) { break; }
        AIAttackWaveUseUnit(gv_p2_ZERG_ORANGE_NW, auto142C38A1_var);

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

    autoE0D555BB_u = UnitGroupCount(autoE0D555BB_g, c_unitCountAll);
    for (;; autoE0D555BB_u -= 1) {
        autoE0D555BB_var = UnitGroupUnitFromEnd(autoE0D555BB_g, autoE0D555BB_u);
        if (autoE0D555BB_var == null) { break; }
        UnitGroupAdd(gv_civilianSpawners, autoE0D555BB_var);

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

    autoE1052B09_u = UnitGroupCount(autoE1052B09_g, c_unitCountAll);
    for (;; autoE1052B09_u -= 1) {
        autoE1052B09_var = UnitGroupUnitFromEnd(autoE1052B09_g, autoE1052B09_u);
        if (autoE1052B09_var == null) { break; }
        UnitIssueOrder(autoE1052B09_var, OrderSetAutoCast(AbilityCommand("BurrowZerglingUp", 0), true), c_orderQueueReplace);

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

    autoB1ABC5AB_u = UnitGroupCount(autoB1ABC5AB_g, c_unitCountAll);
    for (;; autoB1ABC5AB_u -= 1) {
        autoB1ABC5AB_var = UnitGroupUnitFromEnd(autoB1ABC5AB_g, autoB1ABC5AB_u);
        if (autoB1ABC5AB_var == null) { break; }
        UnitBehaviorAdd(autoB1ABC5AB_var, "BroodlingWander", autoB1ABC5AB_var, 1);

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

    autoD5F69E5E_u = UnitGroupCount(autoD5F69E5E_g, c_unitCountAll);
    for (;; autoD5F69E5E_u -= 1) {
        autoD5F69E5E_var = UnitGroupUnitFromEnd(autoD5F69E5E_g, autoD5F69E5E_u);
        if (autoD5F69E5E_var == null) { break; }
        UnitBehaviorAdd(autoD5F69E5E_var, "BroodlingWander", autoD5F69E5E_var, 1);

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

    autoBB9F27D7_u = UnitGroupCount(autoBB9F27D7_g, c_unitCountAll);
    for (;; autoBB9F27D7_u -= 1) {
        autoBB9F27D7_var = UnitGroupUnitFromEnd(autoBB9F27D7_g, autoBB9F27D7_u);
        if (autoBB9F27D7_var == null) { break; }
        UnitBehaviorRemove(autoBB9F27D7_var, "AutoTurretTimedLife", 1);

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

    autoA5804961_u = UnitGroupCount(autoA5804961_g, c_unitCountAll);
    for (;; autoA5804961_u -= 1) {
        autoA5804961_var = UnitGroupUnitFromEnd(autoA5804961_g, autoA5804961_u);
        if (autoA5804961_var == null) { break; }
        UnitSetPropertyFixed(autoA5804961_var, c_unitPropEnergyPercent, 100.0);

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

    autoFE6A3FBA_u = UnitGroupCount(autoFE6A3FBA_g, c_unitCountAll);
    for (;; autoFE6A3FBA_u -= 1) {
        autoFE6A3FBA_var = UnitGroupUnitFromEnd(autoFE6A3FBA_g, autoFE6A3FBA_u);
        if (autoFE6A3FBA_var == null) { break; }
        UnitSetPropertyFixed(autoFE6A3FBA_var, c_unitPropEnergyPercent, 100.0);

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

    auto98FD8F65_u = UnitGroupCount(auto98FD8F65_g, c_unitCountAll);
    for (;; auto98FD8F65_u -= 1) {
        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);

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

    auto1B9E687D_u = UnitGroupCount(auto1B9E687D_g, c_unitCountAll);
    for (;; auto1B9E687D_u -= 1) {
        auto1B9E687D_var = UnitGroupUnitFromEnd(auto1B9E687D_g, auto1B9E687D_u);
        if (auto1B9E687D_var == null) { break; }
        UnitIssueOrder(auto1B9E687D_var, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(481)), c_orderQueueAddToEnd);

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

    auto6A6C64E5_u = UnitGroupCount(auto6A6C64E5_g, c_unitCountAll);
    for (;; auto6A6C64E5_u -= 1) {
        auto6A6C64E5_var = UnitGroupUnitFromEnd(auto6A6C64E5_g, auto6A6C64E5_u);
        if (auto6A6C64E5_var == null) { break; }
        if ((UnitGetType(auto6A6C64E5_var) != "SporeCrawler") && (UnitGetType(auto6A6C64E5_var) != "SpineCrawler")) {

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

    auto97A1CCEC_u = UnitGroupCount(auto97A1CCEC_g, c_unitCountAll);
    for (;; auto97A1CCEC_u -= 1) {
        auto97A1CCEC_var = UnitGroupUnitFromEnd(auto97A1CCEC_g, auto97A1CCEC_u);
        if (auto97A1CCEC_var == null) { break; }
        UnitGroupAdd(gv_infestorGroup, auto97A1CCEC_var);

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

    autoC2C40852_u = UnitGroupCount(autoC2C40852_g, c_unitCountAll);
    for (;; autoC2C40852_u -= 1) {
        autoC2C40852_var = UnitGroupUnitFromEnd(autoC2C40852_g, autoC2C40852_u);
        if (autoC2C40852_var == null) { break; }
        UnitSetPropertyFixed(autoC2C40852_var, c_unitPropEnergyPercent, 100.0);

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

    auto2AA8063C_u = UnitGroupCount(auto2AA8063C_g, c_unitCountAll);
    for (;; auto2AA8063C_u -= 1) {
        auto2AA8063C_var = UnitGroupUnitFromEnd(auto2AA8063C_g, auto2AA8063C_u);
        if (auto2AA8063C_var == null) { break; }
        if ((UnitGetType(auto2AA8063C_var) != "CreepTumorBurrowed") && (UnitGetType(auto2AA8063C_var) != "SpineCrawler") && (UnitGetType(auto2AA8063C_var) != "SporeCrawler")) {

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

    auto3A63F5D6_u = UnitGroupCount(auto3A63F5D6_g, c_unitCountAll);
    for (;; auto3A63F5D6_u -= 1) {
        auto3A63F5D6_var = UnitGroupUnitFromEnd(auto3A63F5D6_g, auto3A63F5D6_u);
        if (auto3A63F5D6_var == null) { break; }
        UnitGroupAdd(gv_infestedStructureGroup, auto3A63F5D6_var);

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

    auto3F7ED517_u = UnitGroupCount(auto3F7ED517_g, c_unitCountAll);
    for (;; auto3F7ED517_u -= 1) {
        auto3F7ED517_var = UnitGroupUnitFromEnd(auto3F7ED517_g, auto3F7ED517_u);
        if (auto3F7ED517_var == null) { break; }
        UnitGroupAdd(gv_infestedStructureGroup, auto3F7ED517_var);

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

    autoA091F957_u = UnitGroupCount(autoA091F957_g, c_unitCountAll);
    for (;; autoA091F957_u -= 1) {
        autoA091F957_var = UnitGroupUnitFromEnd(autoA091F957_g, autoA091F957_u);
        if (autoA091F957_var == null) { break; }
        UnitGroupAdd(gv_infestedStructureGroup, autoA091F957_var);

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

        autoF9067DCD_u = UnitGroupCount(autoF9067DCD_g, c_unitCountAll);
        for (;; autoF9067DCD_u -= 1) {
            autoF9067DCD_var = UnitGroupUnitFromEnd(autoF9067DCD_g, autoF9067DCD_u);
            if (autoF9067DCD_var == null) { break; }
            libNtve_gf_PauseUnit(autoF9067DCD_var, false);

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

    auto7ECFBFDB_u = UnitGroupCount(auto7ECFBFDB_g, c_unitCountAll);
    for (;; auto7ECFBFDB_u -= 1) {
        auto7ECFBFDB_var = UnitGroupUnitFromEnd(auto7ECFBFDB_g, auto7ECFBFDB_u);
        if (auto7ECFBFDB_var == null) { break; }
        if ((UnitGetType(auto7ECFBFDB_var) == "Infestor") && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto7ECFBFDB_var), 14.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {

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

    auto81633956_u = UnitGroupCount(auto81633956_g, c_unitCountAll);
    for (;; auto81633956_u -= 1) {
        auto81633956_var = UnitGroupUnitFromEnd(auto81633956_g, auto81633956_u);
        if (auto81633956_var == null) { break; }
        UnitSetInfoText(auto81633956_var, StringToText(""), StringExternal("Param/Value/12815583"), StringToText(""));

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

    auto542B3ECA_u = UnitGroupCount(auto542B3ECA_g, c_unitCountAll);
    for (;; auto542B3ECA_u -= 1) {
        auto542B3ECA_var = UnitGroupUnitFromEnd(auto542B3ECA_g, auto542B3ECA_u);
        if (auto542B3ECA_var == null) { break; }
        UnitSetState(auto542B3ECA_var, c_unitStateTargetable, false);

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

    auto28CECA96_u = UnitGroupCount(auto28CECA96_g, c_unitCountAll);
    for (;; auto28CECA96_u -= 1) {
        auto28CECA96_var = UnitGroupUnitFromEnd(auto28CECA96_g, auto28CECA96_u);
        if (auto28CECA96_var == null) { break; }
        UnitSetState(auto28CECA96_var, c_unitStateTargetable, false);

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

    autoD79C4196_u = UnitGroupCount(autoD79C4196_g, c_unitCountAll);
    for (;; autoD79C4196_u -= 1) {
        autoD79C4196_var = UnitGroupUnitFromEnd(autoD79C4196_g, autoD79C4196_u);
        if (autoD79C4196_var == null) { break; }
        UnitSetState(autoD79C4196_var, c_unitStateTargetable, false);

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

    autoC2C6AB81_u = UnitGroupCount(autoC2C6AB81_g, c_unitCountAll);
    for (;; autoC2C6AB81_u -= 1) {
        autoC2C6AB81_var = UnitGroupUnitFromEnd(autoC2C6AB81_g, autoC2C6AB81_u);
        if (autoC2C6AB81_var == null) { break; }
        UnitSetState(autoC2C6AB81_var, c_unitStateTargetable, false);

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

    auto1BA5B4A7_u = UnitGroupCount(auto1BA5B4A7_g, c_unitCountAll);
    for (;; auto1BA5B4A7_u -= 1) {
        auto1BA5B4A7_var = UnitGroupUnitFromEnd(auto1BA5B4A7_g, auto1BA5B4A7_u);
        if (auto1BA5B4A7_var == null) { break; }
        UnitSetState(auto1BA5B4A7_var, c_unitStateTargetable, false);

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

    auto9A549C26_u = UnitGroupCount(auto9A549C26_g, c_unitCountAll);
    for (;; auto9A549C26_u -= 1) {
        auto9A549C26_var = UnitGroupUnitFromEnd(auto9A549C26_g, auto9A549C26_u);
        if (auto9A549C26_var == null) { break; }
        UnitSetPropertyFixed(auto9A549C26_var, c_unitPropMovementSpeed, 0.0);

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

    autoBB0D8226_u = UnitGroupCount(autoBB0D8226_g, c_unitCountAll);
    for (;; autoBB0D8226_u -= 1) {
        autoBB0D8226_var = UnitGroupUnitFromEnd(autoBB0D8226_g, autoBB0D8226_u);
        if (autoBB0D8226_var == null) { break; }
        UnitSetPropertyFixed(autoBB0D8226_var, c_unitPropMovementSpeed, 0.0);

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

    autoDFBE53DC_u = UnitGroupCount(autoDFBE53DC_g, c_unitCountAll);
    for (;; autoDFBE53DC_u -= 1) {
        autoDFBE53DC_var = UnitGroupUnitFromEnd(autoDFBE53DC_g, autoDFBE53DC_u);
        if (autoDFBE53DC_var == null) { break; }
        UnitSetPropertyFixed(autoDFBE53DC_var, c_unitPropMovementSpeed, 0.0);

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

    autoBE4C0187_u = UnitGroupCount(autoBE4C0187_g, c_unitCountAll);
    for (;; autoBE4C0187_u -= 1) {
        autoBE4C0187_var = UnitGroupUnitFromEnd(autoBE4C0187_g, autoBE4C0187_u);
        if (autoBE4C0187_var == null) { break; }
        UnitGroupAdd(gv_prismGroupEast, autoBE4C0187_var);

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

    auto4EE00797_u = UnitGroupCount(auto4EE00797_g, c_unitCountAll);
    for (;; auto4EE00797_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(auto4EE00797_g, auto4EE00797_u);
        if (lv_u == null) { break; }
        UnitKill(lv_u);

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

    auto009D0608_u = UnitGroupCount(auto009D0608_g, c_unitCountAll);
    for (;; auto009D0608_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(auto009D0608_g, auto009D0608_u);
        if (lv_u == null) { break; }
        gf_InitInfestationColonyUnit(lp_colonyIndex, lv_u);

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

        autoED4A8D80_u = UnitGroupCount(autoED4A8D80_g, c_unitCountAll);
        for (;; autoED4A8D80_u -= 1) {
            lv_u = UnitGroupUnitFromEnd(autoED4A8D80_g, autoED4A8D80_u);
            if (lv_u == null) { break; }
            UnitRemove(lv_u);

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

        auto6DAA3909_u = UnitGroupCount(auto6DAA3909_g, c_unitCountAll);
        for (;; auto6DAA3909_u -= 1) {
            lv_overlord = UnitGroupUnitFromEnd(auto6DAA3909_g, auto6DAA3909_u);
            if (lv_overlord == null) { break; }
            if ((UnitGetOwner(lv_overlord) == gv_p07_ZERG_INFESTED) && (libNtve_gf_UnitInRegion(lv_overlord, gv_infestationRegion[lp_colonyIndex]) == true) && (lv_defenderIndex < gv_infestationDefenderCount[lp_colonyIndex])) {

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

    auto662D39EC_u = UnitGroupCount(auto662D39EC_g, c_unitCountAll);
    for (;; auto662D39EC_u -= 1) {
        auto662D39EC_var = UnitGroupUnitFromEnd(auto662D39EC_g, auto662D39EC_u);
        if (auto662D39EC_var == null) { break; }
        UnitGroupAdd(gv_carrionBirds, auto662D39EC_var);

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

    auto43ECEBF9_u = UnitGroupCount(auto43ECEBF9_g, c_unitCountAll);
    for (;; auto43ECEBF9_u -= 1) {
        auto43ECEBF9_var = UnitGroupUnitFromEnd(auto43ECEBF9_g, auto43ECEBF9_u);
        if (auto43ECEBF9_var == null) { break; }
        libNtve_gf_ShowHideUnit(auto43ECEBF9_var, false);

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

    auto828DBE83_u = UnitGroupCount(auto828DBE83_g, c_unitCountAll);
    for (;; auto828DBE83_u -= 1) {
        auto828DBE83_var = UnitGroupUnitFromEnd(auto828DBE83_g, auto828DBE83_u);
        if (auto828DBE83_var == null) { break; }
        UnitGroupAdd(gv_briefingGroup, auto828DBE83_var);

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

    auto8A971C58_u = UnitGroupCount(auto8A971C58_g, c_unitCountAll);
    for (;; auto8A971C58_u -= 1) {
        auto8A971C58_var = UnitGroupUnitFromEnd(auto8A971C58_g, auto8A971C58_u);
        if (auto8A971C58_var == null) { break; }
        UnitSetState(auto8A971C58_var, c_unitStateTargetable, false);

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

    auto38B5833A_u = UnitGroupCount(auto38B5833A_g, c_unitCountAll);
    for (;; auto38B5833A_u -= 1) {
        auto38B5833A_var = UnitGroupUnitFromEnd(auto38B5833A_g, auto38B5833A_u);
        if (auto38B5833A_var == null) { break; }
        UnitBehaviorAddPlayer(auto38B5833A_var, "ColonyInfestation", gv_p02_ZERG_EAST, 1);

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

    auto97EF4C11_u = UnitGroupCount(auto97EF4C11_g, c_unitCountAll);
    for (;; auto97EF4C11_u -= 1) {
        auto97EF4C11_var = UnitGroupUnitFromEnd(auto97EF4C11_g, auto97EF4C11_u);
        if (auto97EF4C11_var == null) { break; }
        UnitBehaviorAddPlayer(auto97EF4C11_var, "ColonyInfestation", gv_p04_ZERG_NORTH, 1);

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

    auto582274C1_u = UnitGroupCount(auto582274C1_g, c_unitCountAll);
    for (;; auto582274C1_u -= 1) {
        auto582274C1_var = UnitGroupUnitFromEnd(auto582274C1_g, auto582274C1_u);
        if (auto582274C1_var == null) { break; }
        UnitSetPropertyFixed(auto582274C1_var, c_unitPropEnergy, UnitGetPropertyFixed(auto582274C1_var, c_unitPropEnergyMax, c_unitPropNormal));

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

    auto847F12A2_u = UnitGroupCount(auto847F12A2_g, c_unitCountAll);
    for (;; auto847F12A2_u -= 1) {
        auto847F12A2_var = UnitGroupUnitFromEnd(auto847F12A2_g, auto847F12A2_u);
        if (auto847F12A2_var == null) { break; }
        gv_totalDiamondbacks += 1;

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

    auto33545EAB_u = UnitGroupCount(auto33545EAB_g, c_unitCountAll);
    for (;; auto33545EAB_u -= 1) {
        auto33545EAB_var = UnitGroupUnitFromEnd(auto33545EAB_g, auto33545EAB_u);
        if (auto33545EAB_var == null) { break; }
        libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(auto33545EAB_var), "Morph");

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

    autoC99230F0_u = UnitGroupCount(autoC99230F0_g, c_unitCountAll);
    for (;; autoC99230F0_u -= 1) {
        autoC99230F0_var = UnitGroupUnitFromEnd(autoC99230F0_g, autoC99230F0_u);
        if (autoC99230F0_var == null) { break; }
        UnitBehaviorRemove(autoC99230F0_var, "AutoTurretTimedLife", 1);

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

    auto79C99746_u = UnitGroupCount(auto79C99746_g, c_unitCountAll);
    for (;; auto79C99746_u -= 1) {
        auto79C99746_var = UnitGroupUnitFromEnd(auto79C99746_g, auto79C99746_u);
        if (auto79C99746_var == null) { break; }
        UnitSetInfoText(auto79C99746_var, StringExternal("Param/Value/7827FD7F"), StringExternal("Param/Value/C07F9ABA"), StringToText(""));

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

    auto4E88CFC0_u = UnitGroupCount(auto4E88CFC0_g, c_unitCountAll);
    for (;; auto4E88CFC0_u -= 1) {
        auto4E88CFC0_var = UnitGroupUnitFromEnd(auto4E88CFC0_g, auto4E88CFC0_u);
        if (auto4E88CFC0_var == null) { break; }
        UnitSetInfoText(auto4E88CFC0_var, StringExternal("Param/Value/68DBCADA"), StringExternal("Param/Value/B175DB47"), StringToText(""));

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

    auto005D2B42_u = UnitGroupCount(auto005D2B42_g, c_unitCountAll);
    for (;; auto005D2B42_u -= 1) {
        auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
        if (auto005D2B42_var == null) { break; }
        if (((UnitGetType(auto005D2B42_var) == "Caboose") || (UnitGetType(auto005D2B42_var) == "FreightCar") || (UnitGetType(auto005D2B42_var) == "TarsonisEngine") || (UnitGetType(auto005D2B42_var) == "TarsonisEngineFast"))) {

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

    auto499A4BF2_u = UnitGroupCount(auto499A4BF2_g, c_unitCountAll);
    for (;; auto499A4BF2_u -= 1) {
        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)) {

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

        auto5F63F107_u = UnitGroupCount(auto5F63F107_g, c_unitCountAll);
        for (;; auto5F63F107_u -= 1) {
            auto5F63F107_var = UnitGroupUnitFromEnd(auto5F63F107_g, auto5F63F107_u);
            if (auto5F63F107_var == null) { break; }
            if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto5F63F107_var), 3.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {

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

            autoAB0F86D0_u = UnitGroupCount(autoAB0F86D0_g, c_unitCountAll);
            for (;; autoAB0F86D0_u -= 1) {
                autoAB0F86D0_var = UnitGroupUnitFromEnd(autoAB0F86D0_g, autoAB0F86D0_u);
                if (autoAB0F86D0_var == null) { break; }
                AISetUnitScriptControlled(autoAB0F86D0_var, false);

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

    auto8FFA0729_u = UnitGroupCount(auto8FFA0729_g, c_unitCountAll);
    for (;; auto8FFA0729_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(auto8FFA0729_g, auto8FFA0729_u);
        if (lv_u == null) { break; }
        if ((UnitGetType(lv_u) != "SpiderMine") && (UnitGetType(lv_u) != "SpiderMineBurrowed")) {

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

    auto4801D79A_u = UnitGroupCount(auto4801D79A_g, c_unitCountAll);
    for (;; auto4801D79A_u -= 1) {
        auto4801D79A_var = UnitGroupUnitFromEnd(auto4801D79A_g, auto4801D79A_u);
        if (auto4801D79A_var == null) { break; }
        UnitCargoCreate(auto4801D79A_var, "Marine", 4);

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

    auto8FA23EE3_u = UnitGroupCount(auto8FA23EE3_g, c_unitCountAll);
    for (;; auto8FA23EE3_u -= 1) {
        auto8FA23EE3_var = UnitGroupUnitFromEnd(auto8FA23EE3_g, auto8FA23EE3_u);
        if (auto8FA23EE3_var == null) { break; }
        UnitCargoCreate(auto8FA23EE3_var, "WarPig", 4);

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

    auto721FDF2B_u = UnitGroupCount(auto721FDF2B_g, c_unitCountAll);
    for (;; auto721FDF2B_u -= 1) {
        auto721FDF2B_var = UnitGroupUnitFromEnd(auto721FDF2B_g, auto721FDF2B_u);
        if (auto721FDF2B_var == null) { break; }
        UnitBehaviorRemove(auto721FDF2B_var, "AutoTurretTimedLife", 1);

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

    auto2A22AC2E_u = UnitGroupCount(auto2A22AC2E_g, c_unitCountAll);
    for (;; auto2A22AC2E_u -= 1) {
        auto2A22AC2E_var = UnitGroupUnitFromEnd(auto2A22AC2E_g, auto2A22AC2E_u);
        if (auto2A22AC2E_var == null) { break; }
        gv_contrabandRelicsTotal += 1;

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

    autoD10EC4F1_u = UnitGroupCount(autoD10EC4F1_g, c_unitCountAll);
    for (;; autoD10EC4F1_u -= 1) {
        autoD10EC4F1_var = UnitGroupUnitFromEnd(autoD10EC4F1_g, autoD10EC4F1_u);
        if (autoD10EC4F1_var == null) { break; }
        AISetUnitScriptControlled(autoD10EC4F1_var, true);

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

    autoA8826E3A_u = UnitGroupCount(autoA8826E3A_g, c_unitCountAll);
    for (;; autoA8826E3A_u -= 1) {
        autoA8826E3A_var = UnitGroupUnitFromEnd(autoA8826E3A_g, autoA8826E3A_u);
        if (autoA8826E3A_var == null) { break; }
        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {

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

    autoB091E22D_u = UnitGroupCount(autoB091E22D_g, c_unitCountAll);
    for (;; autoB091E22D_u -= 1) {
        autoB091E22D_var = UnitGroupUnitFromEnd(autoB091E22D_g, autoB091E22D_u);
        if (autoB091E22D_var == null) { break; }
        auto1D02B692_val = UnitGetType(autoB091E22D_var);

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

    auto020B1BA4_u = UnitGroupCount(auto020B1BA4_g, c_unitCountAll);
    for (;; auto020B1BA4_u -= 1) {
        auto020B1BA4_var = UnitGroupUnitFromEnd(auto020B1BA4_g, auto020B1BA4_u);
        if (auto020B1BA4_var == null) { break; }
        UnitGroupAdd(gv_minerals_In_Expansion_1, auto020B1BA4_var);

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

    auto5A315116_u = UnitGroupCount(auto5A315116_g, c_unitCountAll);
    for (;; auto5A315116_u -= 1) {
        auto5A315116_var = UnitGroupUnitFromEnd(auto5A315116_g, auto5A315116_u);
        if (auto5A315116_var == null) { break; }
        UnitGroupAdd(gv_minerals_In_Expansion_2, auto5A315116_var);

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

    autoD9E2A2C7_u = UnitGroupCount(autoD9E2A2C7_g, c_unitCountAll);
    for (;; autoD9E2A2C7_u -= 1) {
        autoD9E2A2C7_var = UnitGroupUnitFromEnd(autoD9E2A2C7_g, autoD9E2A2C7_u);
        if (autoD9E2A2C7_var == null) { break; }
        UnitSetInfoText(autoD9E2A2C7_var, StringExternal("Param/Value/61DADD36"), StringToText(""), StringToText(""));

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

    autoA9B56296_u = UnitGroupCount(autoA9B56296_g, c_unitCountAll);
    for (;; autoA9B56296_u -= 1) {
        autoA9B56296_var = UnitGroupUnitFromEnd(autoA9B56296_g, autoA9B56296_u);
        if (autoA9B56296_var == null) { break; }
        UnitSetPropertyFixed(autoA9B56296_var, c_unitPropEnergyPercent, 100.0);

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

    autoA69D9812_u = UnitGroupCount(autoA69D9812_g, c_unitCountAll);
    for (;; autoA69D9812_u -= 1) {
        autoA69D9812_var = UnitGroupUnitFromEnd(autoA69D9812_g, autoA69D9812_u);
        if (autoA69D9812_var == null) { break; }
        UnitIssueOrder(autoA69D9812_var, Order(AbilityCommand("move", 2)), c_orderQueueReplace);

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

    auto089A9E6A_u = UnitGroupCount(auto089A9E6A_g, c_unitCountAll);
    for (;; auto089A9E6A_u -= 1) {
        auto089A9E6A_var = UnitGroupUnitFromEnd(auto089A9E6A_g, auto089A9E6A_u);
        if (auto089A9E6A_var == null) { break; }
        libNtve_gf_PauseUnit(auto089A9E6A_var, true);

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

    autoBA160EAB_u = UnitGroupCount(autoBA160EAB_g, c_unitCountAll);
    for (;; autoBA160EAB_u -= 1) {
        autoBA160EAB_var = UnitGroupUnitFromEnd(autoBA160EAB_g, autoBA160EAB_u);
        if (autoBA160EAB_var == null) { break; }
        UnitBehaviorAdd(autoBA160EAB_var, "ScanRangeBonus", autoBA160EAB_var, 1);

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

    auto1FE7BFD6_u = UnitGroupCount(auto1FE7BFD6_g, c_unitCountAll);
    for (;; auto1FE7BFD6_u -= 1) {
        auto1FE7BFD6_var = UnitGroupUnitFromEnd(auto1FE7BFD6_g, auto1FE7BFD6_u);
        if (auto1FE7BFD6_var == null) { break; }
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(auto1FE7BFD6_var), c_animNameDefault, "Fidget Inferior", c_animFlagPlayForever, c_animTimeDefault);

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

    auto550403AC_u = UnitGroupCount(auto550403AC_g, c_unitCountAll);
    for (;; auto550403AC_u -= 1) {
        auto550403AC_var = UnitGroupUnitFromEnd(auto550403AC_g, auto550403AC_u);
        if (auto550403AC_var == null) { break; }
        UnitIssueOrder(auto550403AC_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(294)), c_orderQueueReplace);

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

    auto32B93861_u = UnitGroupCount(auto32B93861_g, c_unitCountAll);
    for (;; auto32B93861_u -= 1) {
        auto32B93861_var = UnitGroupUnitFromEnd(auto32B93861_g, auto32B93861_u);
        if (auto32B93861_var == null) { break; }
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(auto32B93861_var), c_animNameDefault, "Fidget Inferior", c_animFlagPlayForever, c_animTimeDefault);

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

    auto9297DEB2_u = UnitGroupCount(auto9297DEB2_g, c_unitCountAll);
    for (;; auto9297DEB2_u -= 1) {
        auto9297DEB2_var = UnitGroupUnitFromEnd(auto9297DEB2_g, auto9297DEB2_u);
        if (auto9297DEB2_var == null) { break; }
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(auto9297DEB2_var), c_animNameDefault, "Fidget Inferior", c_animFlagPlayForever, c_animTimeDefault);

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

    auto22DD70B6_u = UnitGroupCount(auto22DD70B6_g, c_unitCountAll);
    for (;; auto22DD70B6_u -= 1) {
        auto22DD70B6_var = UnitGroupUnitFromEnd(auto22DD70B6_g, auto22DD70B6_u);
        if (auto22DD70B6_var == null) { break; }
        UnitIssueOrder(auto22DD70B6_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(111)), c_orderQueueReplace);

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

    auto560015A7_u = UnitGroupCount(auto560015A7_g, c_unitCountAll);
    for (;; auto560015A7_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(auto560015A7_g, auto560015A7_u);
        if (lv_u == null) { break; }
        UnitBehaviorAdd(lv_u, "Passive", lv_u, 1);

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

    auto2F78EED7_u = UnitGroupCount(auto2F78EED7_g, c_unitCountAll);
    for (;; auto2F78EED7_u -= 1) {
        lv_u = UnitGroupUnitFromEnd(auto2F78EED7_g, auto2F78EED7_u);
        if (lv_u == null) { break; }
        if ((gf_TransportIsDeadOrEmpty(lv_u) == false)) {

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

    autoCA6DCF8D_u = UnitGroupCount(autoCA6DCF8D_g, c_unitCountAll);
    for (;; autoCA6DCF8D_u -= 1) {
        autoCA6DCF8D_var = UnitGroupUnitFromEnd(autoCA6DCF8D_g, autoCA6DCF8D_u);
        if (autoCA6DCF8D_var == null) { break; }
        UnitBehaviorRemove(autoCA6DCF8D_var, "AutoTurretTimedLife", 1);

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

    autoF69A218C_u = UnitGroupCount(autoF69A218C_g, c_unitCountAll);
    for (;; autoF69A218C_u -= 1) {
        autoF69A218C_var = UnitGroupUnitFromEnd(autoF69A218C_g, autoF69A218C_u);
        if (autoF69A218C_var == null) { break; }
        libNtve_gf_MakeUnitInvulnerable(autoF69A218C_var, true);

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

    auto6464AF62_u = UnitGroupCount(auto6464AF62_g, c_unitCountAll);
    for (;; auto6464AF62_u -= 1) {
        auto6464AF62_var = UnitGroupUnitFromEnd(auto6464AF62_g, auto6464AF62_u);
        if (auto6464AF62_var == null) { break; }
        gf_SetMaxLife(auto6464AF62_var, 200.0);

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

    auto604BE6FC_u = UnitGroupCount(auto604BE6FC_g, c_unitCountAll);
    for (;; auto604BE6FC_u -= 1) {
        auto604BE6FC_var = UnitGroupUnitFromEnd(auto604BE6FC_g, auto604BE6FC_u);
        if (auto604BE6FC_var == null) { break; }
        libNtve_gf_MakeUnitInvulnerable(auto604BE6FC_var, true);

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

    autoB1D9B05D_u = UnitGroupCount(autoB1D9B05D_g, c_unitCountAll);
    for (;; autoB1D9B05D_u -= 1) {
        autoB1D9B05D_var = UnitGroupUnitFromEnd(autoB1D9B05D_g, autoB1D9B05D_u);
        if (autoB1D9B05D_var == null) { break; }
        UnitBehaviorAdd(autoB1D9B05D_var, "Passive", autoB1D9B05D_var, 1);

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

    auto0FE472A7_u = UnitGroupCount(auto0FE472A7_g, c_unitCountAll);
    for (;; auto0FE472A7_u -= 1) {
        auto0FE472A7_var = UnitGroupUnitFromEnd(auto0FE472A7_g, auto0FE472A7_u);
        if (auto0FE472A7_var == null) { break; }
        UnitBehaviorAdd(auto0FE472A7_var, "Passive", auto0FE472A7_var, 1);

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

    autoBAC500A5_u = UnitGroupCount(autoBAC500A5_g, c_unitCountAll);
    for (;; autoBAC500A5_u -= 1) {
        autoBAC500A5_var = UnitGroupUnitFromEnd(autoBAC500A5_g, autoBAC500A5_u);
        if (autoBAC500A5_var == null) { break; }
        UnitBehaviorAdd(autoBAC500A5_var, "Passive", autoBAC500A5_var, 1);

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

    auto39080546_u = UnitGroupCount(auto39080546_g, c_unitCountAll);
    for (;; auto39080546_u -= 1) {
        auto39080546_var = UnitGroupUnitFromEnd(auto39080546_g, auto39080546_u);
        if (auto39080546_var == null) { break; }
        UnitBehaviorAdd(auto39080546_var, "Passive", auto39080546_var, 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:814

        autoC18DB74C_u = UnitGroupCount(autoC18DB74C_g, c_unitCountAll);
        for (;; autoC18DB74C_u -= 1) {
            autoC18DB74C_var = UnitGroupUnitFromEnd(autoC18DB74C_g, autoC18DB74C_u);
            if (autoC18DB74C_var == null) { break; }
            UnitSetState(autoC18DB74C_var, c_unitStateTooltipable, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:823

    autoFC03208E_u = UnitGroupCount(autoFC03208E_g, c_unitCountAll);
    for (;; autoFC03208E_u -= 1) {
        autoFC03208E_var = UnitGroupUnitFromEnd(autoFC03208E_g, autoFC03208E_u);
        if (autoFC03208E_var == null) { break; }
        UnitSetInfoText(autoFC03208E_var, StringExternal("Param/Value/E9797FD9"), StringExternal("Param/Value/00228AC0"), StringToText(""));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:846

    auto7239A252_u = UnitGroupCount(auto7239A252_g, c_unitCountAll);
    for (;; auto7239A252_u -= 1) {
        auto7239A252_var = UnitGroupUnitFromEnd(auto7239A252_g, auto7239A252_u);
        if (auto7239A252_var == null) { break; }
        UnitGroupAdd(gv_enemyGroupTurretArea, auto7239A252_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:853

    auto4DD7B44B_u = UnitGroupCount(auto4DD7B44B_g, c_unitCountAll);
    for (;; auto4DD7B44B_u -= 1) {
        auto4DD7B44B_var = UnitGroupUnitFromEnd(auto4DD7B44B_g, auto4DD7B44B_u);
        if (auto4DD7B44B_var == null) { break; }
        UnitGroupAdd(gv_enemyGroupTurretArea, auto4DD7B44B_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:869

    auto8CE2489D_u = UnitGroupCount(auto8CE2489D_g, c_unitCountAll);
    for (;; auto8CE2489D_u -= 1) {
        auto8CE2489D_var = UnitGroupUnitFromEnd(auto8CE2489D_g, auto8CE2489D_u);
        if (auto8CE2489D_var == null) { break; }
        UnitGroupAdd(gv_tanks, auto8CE2489D_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:876

    auto52F81063_u = UnitGroupCount(auto52F81063_g, c_unitCountAll);
    for (;; auto52F81063_u -= 1) {
        auto52F81063_var = UnitGroupUnitFromEnd(auto52F81063_g, auto52F81063_u);
        if (auto52F81063_var == null) { break; }
        UnitGroupAdd(gv_tanks, auto52F81063_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:883

    autoDC6AB5E6_u = UnitGroupCount(autoDC6AB5E6_g, c_unitCountAll);
    for (;; autoDC6AB5E6_u -= 1) {
        autoDC6AB5E6_var = UnitGroupUnitFromEnd(autoDC6AB5E6_g, autoDC6AB5E6_u);
        if (autoDC6AB5E6_var == null) { break; }
        UnitGroupAdd(gv_vikings, autoDC6AB5E6_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:927

    auto71589922_u = UnitGroupCount(auto71589922_g, c_unitCountAll);
    for (;; auto71589922_u -= 1) {
        auto71589922_var = UnitGroupUnitFromEnd(auto71589922_g, auto71589922_u);
        if (auto71589922_var == null) { break; }
        UnitSetPropertyFixed(auto71589922_var, c_unitPropLifeMax, 5.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:934

    auto0B5DED9A_u = UnitGroupCount(auto0B5DED9A_g, c_unitCountAll);
    for (;; auto0B5DED9A_u -= 1) {
        auto0B5DED9A_var = UnitGroupUnitFromEnd(auto0B5DED9A_g, auto0B5DED9A_u);
        if (auto0B5DED9A_var == null) { break; }
        UnitGroupAdd(gv_eggsGroup, auto0B5DED9A_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:941

    autoD18E9BE4_u = UnitGroupCount(autoD18E9BE4_g, c_unitCountAll);
    for (;; autoD18E9BE4_u -= 1) {
        autoD18E9BE4_var = UnitGroupUnitFromEnd(autoD18E9BE4_g, autoD18E9BE4_u);
        if (autoD18E9BE4_var == null) { break; }
        UnitGroupAdd(gv_scientistsGroup, autoD18E9BE4_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:459

    auto4BD2192F_u = UnitGroupCount(auto4BD2192F_g, c_unitCountAll);
    for (;; auto4BD2192F_u -= 1) {
        auto4BD2192F_var = UnitGroupUnitFromEnd(auto4BD2192F_g, auto4BD2192F_u);
        if (auto4BD2192F_var == null) { break; }
        UnitSetState(auto4BD2192F_var, c_unitStateTargetable, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:467

    autoF0581A9B_u = UnitGroupCount(autoF0581A9B_g, c_unitCountAll);
    for (;; autoF0581A9B_u -= 1) {
        autoF0581A9B_var = UnitGroupUnitFromEnd(autoF0581A9B_g, autoF0581A9B_u);
        if (autoF0581A9B_var == null) { break; }
        UnitSetState(autoF0581A9B_var, c_unitStateTargetable, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:475

    auto318DD5C1_u = UnitGroupCount(auto318DD5C1_g, c_unitCountAll);
    for (;; auto318DD5C1_u -= 1) {
        auto318DD5C1_var = UnitGroupUnitFromEnd(auto318DD5C1_g, auto318DD5C1_u);
        if (auto318DD5C1_var == null) { break; }
        gv_riksvillePopulation += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:482

    auto2C4972A8_u = UnitGroupCount(auto2C4972A8_g, c_unitCountAll);
    for (;; auto2C4972A8_u -= 1) {
        auto2C4972A8_var = UnitGroupUnitFromEnd(auto2C4972A8_g, auto2C4972A8_u);
        if (auto2C4972A8_var == null) { break; }
        gv_riksvillePopulation += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:489

    autoC6ECD779_u = UnitGroupCount(autoC6ECD779_g, c_unitCountAll);
    for (;; autoC6ECD779_u -= 1) {
        autoC6ECD779_var = UnitGroupUnitFromEnd(autoC6ECD779_g, autoC6ECD779_u);
        if (autoC6ECD779_var == null) { break; }
        UnitGroupAdd(gv_riksvilleTownSquareDominion, autoC6ECD779_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:496

    autoCC9EB017_u = UnitGroupCount(autoCC9EB017_g, c_unitCountAll);
    for (;; autoCC9EB017_u -= 1) {
        autoCC9EB017_var = UnitGroupUnitFromEnd(autoCC9EB017_g, autoCC9EB017_u);
        if (autoCC9EB017_var == null) { break; }
        UnitGroupAdd(gv_riksvilleTownSquareDominion, autoCC9EB017_var);

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

    auto901ABA0F_u = UnitGroupCount(auto901ABA0F_g, c_unitCountAll);
    for (;; auto901ABA0F_u -= 1) {
        auto901ABA0F_var = UnitGroupUnitFromEnd(auto901ABA0F_g, auto901ABA0F_u);
        if (auto901ABA0F_var == null) { break; }
        UnitGroupAdd(gv_escapeJerks, auto901ABA0F_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:511

    autoA9EAC333_u = UnitGroupCount(autoA9EAC333_g, c_unitCountAll);
    for (;; autoA9EAC333_u -= 1) {
        autoA9EAC333_var = UnitGroupUnitFromEnd(autoA9EAC333_g, autoA9EAC333_u);
        if (autoA9EAC333_var == null) { break; }
        UnitGroupAdd(gv_escapeCivilians, autoA9EAC333_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:518

    autoC5983A9A_u = UnitGroupCount(autoC5983A9A_g, c_unitCountAll);
    for (;; autoC5983A9A_u -= 1) {
        autoC5983A9A_var = UnitGroupUnitFromEnd(autoC5983A9A_g, autoC5983A9A_u);
        if (autoC5983A9A_var == null) { break; }
        UnitGroupAdd(gv_escapeCivilians, autoC5983A9A_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:527

    auto7CCC2070_u = UnitGroupCount(auto7CCC2070_g, c_unitCountAll);
    for (;; auto7CCC2070_u -= 1) {
        auto7CCC2070_var = UnitGroupUnitFromEnd(auto7CCC2070_g, auto7CCC2070_u);
        if (auto7CCC2070_var == null) { break; }
        UnitGroupAdd(gv_dominionCompoundCivilian, auto7CCC2070_var);