# Create Cargo Units

Grammar — Create inCount inId as cargo in inUnit
FlagsNative | Action

Creates cargo units inside a unit’s cargo bay. Use the “Last Created Cargo Unit” and “Last Created Cargo Units” functions to refer to the created units.

# Arguments

  • unit — Unit
  • string<gamelink::Unit> — Type
  • int — Count

Returns — void

native void UnitCargoCreate(
	unit inUnit,
	string inId,
	int inCount,
);

Category: Unit / Cargo

# Examples

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

            lv_randomHut = UnitGroupRandomUnit(gv_civilianSpawners, c_unitCountAlive);
            if ((RandomFixed(0.0, 100.0) >= 33.0)) {
                UnitCargoCreate(lv_randomHut, "Civilian", 1);
            }
            else {

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

            }
            else {
                UnitCargoCreate(lv_randomHut, "CivilianFemale", 1);
            }
            AISetUnitForceMover(UnitCargoLastCreated(),true);

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

    }

    UnitCargoCreate(UnitFromId(290), "Firebat", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_firebatCargoUnits);
    UnitCargoCreate(UnitFromId(290), "Medic", 2);

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

    UnitCargoCreate(UnitFromId(290), "Firebat", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_firebatCargoUnits);
    UnitCargoCreate(UnitFromId(290), "Medic", 2);
    autoA5804961_g = UnitCargoLastCreatedGroup();
    autoA5804961_u = UnitGroupCount(autoA5804961_g, c_unitCountAll);

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

        }

        UnitCargoCreate(lv_overlord, "Drone", 1);
        UnitSetCustomValue(UnitCargoLastCreated(), 1, IntToFixed(lp_colonyIndex));
        lv_drone = UnitCargoLastCreated();

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

    UnitSetPropertyFixed(UnitFromId(1226), c_unitPropEnergyPercent, 100.0);
    libNtve_gf_ShowHideUnit(UnitFromId(1327), false);
    UnitCargoCreate(UnitFromId(271), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_playerSCVs);
    UnitCargoCreate(UnitFromId(1056), "Marine", 5);

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

    UnitCargoCreate(UnitFromId(271), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_playerSCVs);
    UnitCargoCreate(UnitFromId(1056), "Marine", 5);
    auto4801D79A_g = UnitGroup("Bunker", gv_p02_ORLAN_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto4801D79A_u = UnitGroupCount(auto4801D79A_g, c_unitCountAll);

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

        auto4801D79A_var = UnitGroupUnitFromEnd(auto4801D79A_g, auto4801D79A_u);
        if (auto4801D79A_var == null) { break; }
        UnitCargoCreate(auto4801D79A_var, "Marine", 4);
    }
    auto8FA23EE3_g = UnitGroup("Bunker", gv_p03_MIRA_HAN, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

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

        auto8FA23EE3_var = UnitGroupUnitFromEnd(auto8FA23EE3_g, auto8FA23EE3_u);
        if (auto8FA23EE3_var == null) { break; }
        UnitCargoCreate(auto8FA23EE3_var, "WarPig", 4);
    }
    auto721FDF2B_g = UnitGroup("AutoTurret", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

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

    libNtve_gf_CreateUnitsAtPoint2(1, "Medivac", 0, gv_p03_MIRA_HAN, PointFromId(1242));
    lv_medivac = UnitLastCreated();
    UnitCargoCreate(lv_medivac, "Vulture", 4);
    libLbty_gf_OrderTransporttoUnloadAllthenDespawn(lv_medivac, PointFromId(1243), PointFromId(1242));
    Wait(6.0, c_timeGame);

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

    UnitSetState(UnitFromId(109), c_unitStateTargetable, false);
    UnitSetState(UnitFromId(109), c_unitStateTooltipable, false);
    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));

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

    UnitSetState(UnitFromId(109), c_unitStateTooltipable, false);
    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));

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

    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));

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

    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));

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

    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);

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

    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);
    UnitCargoCreate(UnitFromId(1007), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));

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

    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);
    UnitCargoCreate(UnitFromId(1007), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    libNtve_gf_MakeUnitInvulnerable(UnitFromId(341), true);

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

    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);
    UnitCargoCreate(UnitFromId(1007), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    libNtve_gf_MakeUnitInvulnerable(UnitFromId(341), true);
    libNtve_gf_MakeUnitInvulnerable(UnitFromId(935), true);

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

    libNtve_gf_CreateUnitsAtPoint2(1, "CommandCenterFlying", 0, gv_p01_USER, PointFromId(961));
    UnitGroupAdd(gv_midGameActors, UnitLastCreated());
    UnitCargoCreate(UnitLastCreated(), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_midGameActors);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("CommandCenterLand", 0), UnitGetPosition(UnitFromId(73))), c_orderQueueReplace);

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


    // Implementation
    UnitCargoCreate(lp_bunker, lp_type, lp_qty);
    auto560015A7_g = UnitLastCreatedGroup();
    auto560015A7_u = UnitGroupCount(auto560015A7_g, c_unitCountAll);

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

    lv_dropship = UnitLastCreated();
    if ((lp_type1 != null)) {
        UnitCargoCreate(lv_dropship, lp_type1, lp_qty1);
    }

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


    if ((lp_type2 != null)) {
        UnitCargoCreate(lv_dropship, lp_type2, lp_qty2);
    }

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

    libNtve_gf_CreateUnitsAtPoint2(1, "CommandCenterFlying", 0, gv_p07_HORNERBASE, PointFromId(931));
    lv_coCe = UnitLastCreated();
    UnitCargoCreate(lv_coCe, "SCV", 5);
    UnitIssueOrder(lv_coCe, OrderTargetingPoint(AbilityCommand("CommandCenterLand", 0), PointFromId(34)), c_orderQueueReplace);
    UnitIssueOrder(lv_coCe, Order(AbilityCommand("CommandCenterTransport", 1)), c_orderQueueAddToEnd);

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

    libNtve_gf_CreateUnitsAtPoint2(1, "Barracks", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1615));
    libNtve_gf_CreateUnitsAtPoint2(1, "Bunker", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1614));
    UnitCargoCreate(UnitLastCreated(), "Marine", 2);
    UnitCargoCreate(UnitLastCreated(), "Marauder", 1);
    libNtve_gf_CreateUnitsAtPoint2(1, "BarracksTechLab", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1027));

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

    libNtve_gf_CreateUnitsAtPoint2(1, "Bunker", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1614));
    UnitCargoCreate(UnitLastCreated(), "Marine", 2);
    UnitCargoCreate(UnitLastCreated(), "Marauder", 1);
    libNtve_gf_CreateUnitsAtPoint2(1, "BarracksTechLab", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1027));
    libNtve_gf_CreateUnitsAtPoint2(1, "BarracksReactor", 0, gv_p02_DOMINION_INFANTRY, PointFromId(1031));

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

    UnitSetState(gv_dropshipComputer05, c_unitStateSelectable, false);
    if ((gv_computer05Marines == true)) {
        UnitCargoCreate(gv_dropshipComputer05, "Marine", 8);
    }
    else if ((gv_computer05Marauder == true)) {

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

    }
    else if ((gv_computer05Marauder == true)) {
        UnitCargoCreate(gv_dropshipComputer05, "Marauder", 3);
    }
    else if ((gv_computer05Firebat == true)) {

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

    }
    else if ((gv_computer05Firebat == true)) {
        UnitCargoCreate(gv_dropshipComputer05, "Firebat", 4);
    }
    else if ((gv_computer05Medic == true)) {

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

    }
    else if ((gv_computer05Medic == true)) {
        UnitCargoCreate(gv_dropshipComputer05, "Marine", 3);
        UnitCargoCreate(gv_dropshipComputer05, "Medic", 3);
    }

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

    else if ((gv_computer05Medic == true)) {
        UnitCargoCreate(gv_dropshipComputer05, "Marine", 3);
        UnitCargoCreate(gv_dropshipComputer05, "Medic", 3);
    }
    UnitIssueOrder(gv_dropshipComputer05, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(240)), c_orderQueueReplace);

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

    libNtve_gf_CreateUnitsAtPoint2(1, "SpecialOpsDropship", 0, gv_p01_USER, PointFromId(161));
    gv_introDropship = UnitLastCreated();
    UnitCargoCreate(gv_introDropship, "Marine", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_introDropshipCargoGroup);
    UnitCargoCreate(gv_introDropship, "Medic", 2);

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

    UnitCargoCreate(gv_introDropship, "Marine", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_introDropshipCargoGroup);
    UnitCargoCreate(gv_introDropship, "Medic", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_introDropshipCargoGroup);
    UnitCargoCreate(UnitLastCreated(), "Raynor", 1);

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

    UnitCargoCreate(gv_introDropship, "Medic", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_introDropshipCargoGroup);
    UnitCargoCreate(UnitLastCreated(), "Raynor", 1);
    gv_raynor = UnitLastCreated();
    UnitGroupAdd(gv_introDropshipCargoGroup, gv_raynor);

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

    UnitSetState(UnitLastCreated(), c_unitStateTargetable, false);
    libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true);
    UnitCargoCreate(gv_introDropship, "Raynor01", 1);
    gv_raynor = UnitCargoLastCreated();
    UnitGroupAdd(gv_introUnitCargoStart, UnitCargoLastCreated());

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

    gv_raynor = UnitCargoLastCreated();
    UnitGroupAdd(gv_introUnitCargoStart, UnitCargoLastCreated());
    UnitCargoCreate(gv_introDropship, "Marine", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_introUnitCargoStart);
    if (((PlayerDifficulty(1) == 1) == true)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:690

    }
    gv_mineGuardPairs = libNtve_gf_DifficultyValueInt(0, 0, 1, 2);
    UnitCargoCreate(UnitFromId(5), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 6));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1063

    UnitSetState(gv_supplyDropship, c_unitStateTargetable, false);
    UnitSetState(gv_supplyDropship, c_unitStateUsingSupply, false);
    UnitCargoCreate(gv_supplyDropship, "SCV", 1);
    gv_supplySCV = UnitCargoLastCreated();
    gf_CreateInfoText(UnitCargoLastCreated());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1257

    UnitSetState(gv_sCVDropship, c_unitStateTargetable, false);
    UnitSetState(gv_sCVDropship, c_unitStateUsingSupply, false);
    UnitCargoCreate(gv_sCVDropship, "SCV", 8);
    gv_sCVReinforcement = UnitCargoLastCreatedGroup();
    UnitIssueOrder(gv_sCVDropship, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(688)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2040

        libNtve_gf_MakeUnitInvulnerable(lv_dropship, true);
        UnitSetState(lv_dropship, c_unitStateTargetable, false);
        UnitCargoCreate(lv_dropship, "SCV", 6);
        libLbty_gf_OrderTransporttoUnloadAllthenDespawn(lv_dropship, PointFromId(863), PointFromId(862));
        Wait(5.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:792

    UnitBehaviorAdd(UnitFromId(24), "FastBuild", UnitFromId(24), 1);
    UnitBehaviorAdd(UnitFromId(25), "FastBuild", UnitFromId(25), 1);
    UnitCargoCreate(UnitFromId(6), "Marine", 4);
    UnitCargoCreate(UnitFromId(7), "Marine", 4);
    autoB69A8C3C_g = UnitGroup(null, gv_p3_DOMINION_RED, RegionFromId(58), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:793

    UnitBehaviorAdd(UnitFromId(25), "FastBuild", UnitFromId(25), 1);
    UnitCargoCreate(UnitFromId(6), "Marine", 4);
    UnitCargoCreate(UnitFromId(7), "Marine", 4);
    autoB69A8C3C_g = UnitGroup(null, gv_p3_DOMINION_RED, RegionFromId(58), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoB69A8C3C_u = UnitGroupCount(autoB69A8C3C_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:929

        auto4E511087_var = UnitGroupUnitFromEnd(auto4E511087_g, auto4E511087_u);
        if (auto4E511087_var == null) { break; }
        UnitCargoCreate(auto4E511087_var, "Marine", libNtve_gf_DifficultyValueInt(3, 4, 4, 6));
    }
    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:638

    }

    UnitCargoCreate(UnitFromId(141), "Marine", 4);
    gv_p1MiTuGuards = UnitGroup(null, gv_pLAYER02_TOSH, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
    gv_p1Tank = UnitFromId(31);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:662

    gv_p2WestSpectre = UnitFromId(425);
    UnitIssueOrder(UnitFromId(149), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    UnitCargoCreate(UnitFromId(575), "Marine", libNtve_gf_DifficultyValueInt(3, 3, 4, 2));
    UnitCargoCreate(UnitFromId(575), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    UnitCargoCreate(UnitFromId(82), "Marine", libNtve_gf_DifficultyValueInt(2, 2, 4, 2));

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

    UnitIssueOrder(UnitFromId(149), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    UnitCargoCreate(UnitFromId(575), "Marine", libNtve_gf_DifficultyValueInt(3, 3, 4, 2));
    UnitCargoCreate(UnitFromId(575), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    UnitCargoCreate(UnitFromId(82), "Marine", libNtve_gf_DifficultyValueInt(2, 2, 4, 2));
    UnitCargoCreate(UnitFromId(82), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:664

    UnitCargoCreate(UnitFromId(575), "Marine", libNtve_gf_DifficultyValueInt(3, 3, 4, 2));
    UnitCargoCreate(UnitFromId(575), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    UnitCargoCreate(UnitFromId(82), "Marine", libNtve_gf_DifficultyValueInt(2, 2, 4, 2));
    UnitCargoCreate(UnitFromId(82), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    gv_p2Units = UnitGroup(null, c_playerAny, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:665

    UnitCargoCreate(UnitFromId(575), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    UnitCargoCreate(UnitFromId(82), "Marine", libNtve_gf_DifficultyValueInt(2, 2, 4, 2));
    UnitCargoCreate(UnitFromId(82), "Marauder", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
    gv_p2Units = UnitGroup(null, c_playerAny, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    gf_HideUnitGroup(false, gv_p2Units);

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

    gv_p3SouthGuards = UnitGroup(null, gv_pLAYER02_TOSH, RegionFromId(11), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    gv_p3NorthGuards = UnitGroup(null, gv_pLAYER02_TOSH, RegionFromId(10), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    UnitCargoCreate(UnitFromId(212), "Marine", 4);
    gv_p3BridgeSpectre = UnitFromId(306);
    gv_p3NukerA = UnitFromId(242);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2702

    lv_dropshipA = UnitLastCreated();
    libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true);
    UnitCargoCreate(UnitLastCreated(), "Reaper", 4);
    UnitCargoCreate(UnitLastCreated(), "SiegeTank", 1);
    UnitIssueOrder(lv_dropshipA, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(397)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2703

    libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true);
    UnitCargoCreate(UnitLastCreated(), "Reaper", 4);
    UnitCargoCreate(UnitLastCreated(), "SiegeTank", 1);
    UnitIssueOrder(lv_dropshipA, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(397)), c_orderQueueReplace);
    UnitIssueOrder(lv_dropshipA, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(397)), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2710

    lv_dropshipB = UnitLastCreated();
    libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true);
    UnitCargoCreate(UnitLastCreated(), "Reaper", 4);
    UnitCargoCreate(UnitLastCreated(), "SiegeTank", 1);
    UnitIssueOrder(lv_dropshipB, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(395)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2711

    libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true);
    UnitCargoCreate(UnitLastCreated(), "Reaper", 4);
    UnitCargoCreate(UnitLastCreated(), "SiegeTank", 1);
    UnitIssueOrder(lv_dropshipB, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(395)), c_orderQueueReplace);
    UnitIssueOrder(lv_dropshipB, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(395)), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1534

    libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true);
    lv_swannDropship = UnitLastCreated();
    UnitCargoCreate(lv_swannDropship, "Marauder", libNtve_gf_DifficultyValueInt(4, 4, 4, 3));
    UnitIssueOrder(lv_swannDropship, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(439)), c_orderQueueReplace);
    while (true) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:555

    UnitSetState(UnitFromId(317), c_unitStateTargetable, false);
    libNtve_gf_MakeUnitUncommandable(UnitFromId(317), true);
    UnitCargoCreate(UnitFromId(317), "Marauder", 1);
    UnitCargoCreate(UnitFromId(317), "Marine", 4);
    UnitCargoCreate(UnitFromId(317), "Medic", 2);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:556

    libNtve_gf_MakeUnitUncommandable(UnitFromId(317), true);
    UnitCargoCreate(UnitFromId(317), "Marauder", 1);
    UnitCargoCreate(UnitFromId(317), "Marine", 4);
    UnitCargoCreate(UnitFromId(317), "Medic", 2);
    autoE010A74A_g = UnitGroup("SCV", gv_p7_ABANDONED_BASE, RegionFromId(10), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:557

    UnitCargoCreate(UnitFromId(317), "Marauder", 1);
    UnitCargoCreate(UnitFromId(317), "Marine", 4);
    UnitCargoCreate(UnitFromId(317), "Medic", 2);
    autoE010A74A_g = UnitGroup("SCV", gv_p7_ABANDONED_BASE, RegionFromId(10), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoE010A74A_u = UnitGroupCount(autoE010A74A_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1022

    UnitSetState(gv_siegeTankDropship, c_unitStateTargetable, false);
    UnitSetState(gv_siegeTankDropship, c_unitStateUsingSupply, false);
    UnitCargoCreate(UnitLastCreated(), "SiegeTank", 2);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(530)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(1))), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2702

    if ((RegionContainsPoint(RegionFromId(15), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 0));
            UnitCargoCreate(EventUnitProgressUnit(), "Archon", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2703

        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 0));
            UnitCargoCreate(EventUnitProgressUnit(), "Archon", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2706

        }
        else {
            UnitCargoCreate(EventUnitProgressUnit(), "Stalker", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        TriggerExecute(gt_PrismAttackPhase2NE, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2713

    if ((RegionContainsPoint(RegionFromId(16), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2716

        }
        else {
            UnitCargoCreate(EventUnitProgressUnit(), "Stalker", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        TriggerExecute(gt_PrismAttackPhase2NW, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2723

    if ((RegionContainsPoint(RegionFromId(4), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1054

    gv_medivac01 = UnitLastCreated();
    libNtve_gf_AddUnitGroupToUnitGroup(UnitLastCreatedGroup(), gv_medivacUnits);
    UnitCargoCreate(gv_medivac01, "Marine", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_medivacUnits);
    UnitSetPropertyFixed(gv_medivac01, c_unitPropEnergyPercent, 100.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1065

    UnitSetPropertyFixed(gv_medivac02, c_unitPropEnergyPercent, 100.0);
    UnitSetState(UnitLastCreated(), c_unitStateTooltipable, false);
    UnitCargoCreate(gv_medivac02, "Marine", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_medivacUnits);
    UnitIssueOrder(gv_medivac02, OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), PointFromId(1117)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:3690

    libNtve_gf_CreateUnitsAtPoint2(1, "CommandCenterFlying", 0, gv_pLAYER01_USER, PointFromId(20));
    UnitGroupAdd(gv_midCineTempPlayerGroup, UnitLastCreated());
    UnitCargoCreate(UnitLastCreated(), "SCV", 8);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_midCineTempPlayerGroup);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("CommandCenterLand", 0), PointFromId(13)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:3706

    libNtve_gf_CreateUnitsAtPoint2(1, "SpecialOpsDropship", 0, gv_pLAYER01_USER, PointFromId(35));
    gv_midCineDropship = UnitLastCreated();
    UnitCargoCreate(gv_midCineDropship, "Marine", 4);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_midCineTempPlayerGroup);
    UnitCargoCreate(gv_midCineDropship, "Marauder", 2);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:3708

    UnitCargoCreate(gv_midCineDropship, "Marine", 4);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_midCineTempPlayerGroup);
    UnitCargoCreate(gv_midCineDropship, "Marauder", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_midCineTempPlayerGroup);
    UnitIssueOrder(gv_midCineDropship, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(29)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:4030

    libNtve_gf_CreateUnitsWithDefaultFacing(1, "SpecialOpsDropship", 0, gv_pLAYER01_USER, PointFromId(174));
    lv_dropship = UnitLastCreated();
    UnitCargoCreate(lv_dropship, "Marine", 8);
    UnitIssueOrder(lv_dropship, OrderTargetingPoint(AbilityCommand("SpecOpsDropshipTransport", 2), PointFromId(941)), c_orderQueueReplace);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "TTychus04MusicOutro", c_soundtrackCueAny, c_soundtrackIndexAny, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:5122

    UnitGroupAdd(gv_baseMidSpawnedUnitGroup, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("CommandCenterLand", 0), UnitGetPosition(UnitFromId(228))), c_orderQueueReplace);
    UnitCargoCreate(UnitLastCreated(), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_sCVs);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_baseMidSpawnedUnitGroup);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:1005

        autoA4354CDE_var = UnitGroupUnitFromEnd(autoA4354CDE_g, autoA4354CDE_u);
        if (autoA4354CDE_var == null) { break; }
        UnitCargoCreate(autoA4354CDE_var, "Marine", 4);
    }
    autoD9F28591_g = UnitGroup(null, gv_p03_DOMINION_RED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6931

            if ((RandomInt(1, 5) == 1)) {
                libNtve_gf_UnitCreateFacingPoint(1, "Medivac", 0, gv_p01_USER, RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_terranRegion), RegionGetCenter(gv_briefingSlaughterAreas[lv_i].lv_zergRegion));
                UnitCargoCreate(UnitLastCreated(), "Marine", 8);
                UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("MedivacTransport", 2), RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion)), c_orderQueueReplace);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4315

        autoCD7EB0AC_val = RandomInt(1, 3);
        if (autoCD7EB0AC_val == 1) {
            UnitCargoCreate(UnitLastCreated(), "InfestedCivilian", libNtve_gf_DifficultyValueInt(1, 1, 2, 3));
        }
        else if (autoCD7EB0AC_val == 2) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4318

        }
        else if (autoCD7EB0AC_val == 2) {
            UnitCargoCreate(UnitLastCreated(), "Zergling", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
        }
        else if (autoCD7EB0AC_val == 3) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4321

        }
        else if (autoCD7EB0AC_val == 3) {
            UnitCargoCreate(UnitLastCreated(), "InfestedCivilian", libNtve_gf_DifficultyValueInt(1, 2, 0, 1));
            UnitCargoCreate(UnitLastCreated(), "InfestedTerranCampaign", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4322

        else if (autoCD7EB0AC_val == 3) {
            UnitCargoCreate(UnitLastCreated(), "InfestedCivilian", libNtve_gf_DifficultyValueInt(1, 2, 0, 1));
            UnitCargoCreate(UnitLastCreated(), "InfestedTerranCampaign", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3523

        libNtve_gf_CreateUnitsWithDefaultFacing(1, "Overlord", 0, gv_p3_ZERG, PointFromId(780));
        gv_airAssaultOverlord = UnitLastCreated();
        UnitCargoCreate(UnitLastCreated(), "Roach", libNtve_gf_DifficultyValueInt(2, 2, 3, 4));
        libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_airAssaultGroundUnits);
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("OverlordTransport", 2), PointFromId(421)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3531

        libNtve_gf_CreateUnitsWithDefaultFacing(1, "Overlord", 0, gv_p3_ZERG, PointFromId(784));
        gv_airAssaultOverlord = UnitLastCreated();
        UnitCargoCreate(UnitLastCreated(), "Roach", libNtve_gf_DifficultyValueInt(2, 2, 3, 4));
        libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_airAssaultGroundUnits);
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("OverlordTransport", 2), PointFromId(547)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:6222

    libNtve_gf_CreateUnitsAtPoint2(1, "VoidSeeker", 0, gv_p1_USER, PointFromId(1));
    gv_introVoidSeeker = UnitLastCreated();
    UnitCargoCreate(gv_introVoidSeeker, "Probe", 6);
    UnitIssueOrder(gv_introVoidSeeker, Order(AbilityCommand("PsytrousOxide", 0)), c_orderQueueReplace);
    UnitIssueOrder(gv_introVoidSeeker, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(175)), c_orderQueueReplace);

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


    UnitSetState(UnitFromId(685), c_unitStateTargetable, false);
    UnitCargoCreate(UnitFromId(685), "Zeratul", 1);
    gv_zeratul = UnitCargoLastCreated();
    libNtve_gf_ShowHideUnit(UnitFromId(552), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1556

    libNtve_gf_CreateUnitsWithDefaultFacing(1, "CommandCenter", 0, gv_pLAYER_USER, RegionGetCenter(RegionFromId(5)));
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "Bunker", 0, gv_pLAYER_USER, RegionGetCenter(RegionFromId(3)));
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1558

    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1560

    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1562

    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    UnitCargoCreate(UnitLastCreated(), "Marine", 1);
    UnitGroupAdd(gv_cINEPlayerUnits, UnitCargoLastCreated());
    libNtve_gf_CreateUnitsWithDefaultFacing(1, "SupplyDepot", 0, gv_pLAYER_USER, RegionGetCenter(RegionFromId(1)));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:319

            lv_randomHut = UnitGroupRandomUnit(gv_civilianSpawners, c_unitCountAlive);
            if ((RandomFixed(0.0, 100.0) >= 33.0)) {
                UnitCargoCreate(lv_randomHut, "Civilian", 1);
            }
            else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:322

            }
            else {
                UnitCargoCreate(lv_randomHut, "CivilianFemale", 1);
            }
            AISetUnitForceMover(UnitCargoLastCreated(),true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:997

    }

    UnitCargoCreate(UnitFromId(290), "Firebat", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_firebatCargoUnits);
    UnitCargoCreate(UnitFromId(290), "Medic", 2);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:999

    UnitCargoCreate(UnitFromId(290), "Firebat", 2);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_firebatCargoUnits);
    UnitCargoCreate(UnitFromId(290), "Medic", 2);
    autoA5804961_g = UnitCargoLastCreatedGroup();
    autoA5804961_u = UnitGroupCount(autoA5804961_g, c_unitCountAll);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:631

        }

        UnitCargoCreate(lv_overlord, "Drone", 1);
        UnitSetCustomValue(UnitCargoLastCreated(), 1, IntToFixed(lp_colonyIndex));
        lv_drone = UnitCargoLastCreated();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:565

    UnitSetPropertyFixed(UnitFromId(1226), c_unitPropEnergyPercent, 100.0);
    libNtve_gf_ShowHideUnit(UnitFromId(1327), false);
    UnitCargoCreate(UnitFromId(271), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_playerSCVs);
    UnitCargoCreate(UnitFromId(1056), "Marine", 5);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:567

    UnitCargoCreate(UnitFromId(271), "SCV", 5);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitCargoLastCreatedGroup(), gv_playerSCVs);
    UnitCargoCreate(UnitFromId(1056), "Marine", 5);
    auto4801D79A_g = UnitGroup("Bunker", gv_p02_ORLAN_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto4801D79A_u = UnitGroupCount(auto4801D79A_g, c_unitCountAll);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:573

        auto4801D79A_var = UnitGroupUnitFromEnd(auto4801D79A_g, auto4801D79A_u);
        if (auto4801D79A_var == null) { break; }
        UnitCargoCreate(auto4801D79A_var, "Marine", 4);
    }
    auto8FA23EE3_g = UnitGroup("Bunker", gv_p03_MIRA_HAN, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:580

        auto8FA23EE3_var = UnitGroupUnitFromEnd(auto8FA23EE3_g, auto8FA23EE3_u);
        if (auto8FA23EE3_var == null) { break; }
        UnitCargoCreate(auto8FA23EE3_var, "WarPig", 4);
    }
    auto721FDF2B_g = UnitGroup("AutoTurret", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:1552

    libNtve_gf_CreateUnitsAtPoint2(1, "Medivac", 0, gv_p03_MIRA_HAN, PointFromId(1242));
    lv_medivac = UnitLastCreated();
    UnitCargoCreate(lv_medivac, "Vulture", 4);
    libLbty_gf_OrderTransporttoUnloadAllthenDespawn(lv_medivac, PointFromId(1243), PointFromId(1242));
    Wait(6.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:459

    UnitSetState(UnitFromId(109), c_unitStateTargetable, false);
    UnitSetState(UnitFromId(109), c_unitStateTooltipable, false);
    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:460

    UnitSetState(UnitFromId(109), c_unitStateTooltipable, false);
    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:461

    UnitCargoCreate(UnitFromId(80), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:462

    UnitCargoCreate(UnitFromId(175), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:463

    UnitCargoCreate(UnitFromId(7), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));
    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:464

    UnitCargoCreate(UnitFromId(433), "Marine", libNtve_gf_DifficultyValueInt(2, 1, 2, 0));
    UnitCargoCreate(UnitFromId(433), "Marauder", libNtve_gf_DifficultyValueInt(0, 1, 1, 2));
    UnitCargoCreate(UnitFromId(218), "Marauder", libNtve_gf_DifficultyValueInt(1, 1, 2, 2));
    UnitCargoCreate(UnitFromId(694), "Marine", 4);
    UnitCargoCreate(UnitFromId(1007), "Marine", libNtve_gf_DifficultyValueInt(2, 3, 4, 4));