# Unit Is Cargo

Grammaru is cargo
FlagsFunction

Returns true if the specified unit is considered a cargo unit.

# Arguments

  • unit — Unit

Returns — bool

bool libNtve_gf_UnitIsInsideTransport(unit lp_u);

Category: Unit / Cargo

# Examples

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

    UnitIssueOrder(lp_transport, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
    while (true) {
        if (((UnitIsAlive(lp_cargo) == false) || (libNtve_gf_UnitIsInsideTransport(lp_cargo) == false) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
            return ;
        }

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

    UnitIssueOrder(lp_transport, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
    while (true) {
        if (((UnitIsAlive(lp_cargo) == false) || (libNtve_gf_UnitIsInsideTransport(lp_cargo) == false) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
            return ;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:4524

            autoC351DCC5_var = UnitGroupUnitFromEnd(autoC351DCC5_g, autoC351DCC5_u);
            if (autoC351DCC5_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(autoC351DCC5_var) == true)) {
                lv_herculesHasCargo = true;
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:4606

            auto11392D0A_var = UnitGroupUnitFromEnd(auto11392D0A_g, auto11392D0A_u);
            if (auto11392D0A_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(auto11392D0A_var) == true)) {
                lv_herculesHasCargo = true;
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:4524

            autoC351DCC5_var = UnitGroupUnitFromEnd(autoC351DCC5_g, autoC351DCC5_u);
            if (autoC351DCC5_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(autoC351DCC5_var) == true)) {
                lv_herculesHasCargo = true;
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:4606

            auto11392D0A_var = UnitGroupUnitFromEnd(auto11392D0A_g, auto11392D0A_u);
            if (auto11392D0A_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(auto11392D0A_var) == true)) {
                lv_herculesHasCargo = true;
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:1878

            auto1D1ECC95_var = UnitGroupUnitFromEnd(auto1D1ECC95_g, auto1D1ECC95_u);
            if (auto1D1ECC95_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(auto1D1ECC95_var) == true)) {
                lv_homePosition = PointWithOffsetPolar(UnitGetPosition(UnitTransport(auto1D1ECC95_var)), 1.0, (UnitCargoValue(auto1D1ECC95_var, c_unitCargoPosition) * (360 / UnitCargoValue(UnitTransport(auto1D1ECC95_var), c_unitCargoUnitCount))));
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:2015

                        auto05AF8105_var = UnitGroupUnitFromEnd(auto05AF8105_g, auto05AF8105_u);
                        if (auto05AF8105_var == null) { break; }
                        if ((UnitTypeTestAttribute(UnitGetType(auto05AF8105_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto05AF8105_var) == false)) {
                            libNtve_gf_AICast(auto05AF8105_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_nearbyPlayerUnits, UnitGetPosition(auto05AF8105_var)))));
                        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:2028

                        auto9B8D08C5_var = UnitGroupUnitFromEnd(auto9B8D08C5_g, auto9B8D08C5_u);
                        if (auto9B8D08C5_var == null) { break; }
                        if ((UnitIsAlive(auto9B8D08C5_var) == true) && (UnitTypeTestAttribute(UnitGetType(auto9B8D08C5_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto9B8D08C5_var) == false)) {
                            if ((libNtve_gf_UnitInRegion(auto9B8D08C5_var, RegionCircle(gf_EnemyCampUnitsHomePosition(auto9B8D08C5_var), 1.0)) == true)) {
                                if ((UnitGroupCount(gv_enemyCamps[lv_enemyCampIndex].lv_targetDummies, c_unitCountAlive) > 0)) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:1878

            auto1D1ECC95_var = UnitGroupUnitFromEnd(auto1D1ECC95_g, auto1D1ECC95_u);
            if (auto1D1ECC95_var == null) { break; }
            if ((libNtve_gf_UnitIsInsideTransport(auto1D1ECC95_var) == true)) {
                lv_homePosition = PointWithOffsetPolar(UnitGetPosition(UnitTransport(auto1D1ECC95_var)), 1.0, (UnitCargoValue(auto1D1ECC95_var, c_unitCargoPosition) * (360 / UnitCargoValue(UnitTransport(auto1D1ECC95_var), c_unitCargoUnitCount))));
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:2015

                        auto05AF8105_var = UnitGroupUnitFromEnd(auto05AF8105_g, auto05AF8105_u);
                        if (auto05AF8105_var == null) { break; }
                        if ((UnitTypeTestAttribute(UnitGetType(auto05AF8105_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto05AF8105_var) == false)) {
                            libNtve_gf_AICast(auto05AF8105_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(lv_nearbyPlayerUnits, UnitGetPosition(auto05AF8105_var)))));
                        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2mapMapScript.galaxy:2028

                        auto9B8D08C5_var = UnitGroupUnitFromEnd(auto9B8D08C5_g, auto9B8D08C5_u);
                        if (auto9B8D08C5_var == null) { break; }
                        if ((UnitIsAlive(auto9B8D08C5_var) == true) && (UnitTypeTestAttribute(UnitGetType(auto9B8D08C5_var), c_unitAttributeStructure) == false) && (libNtve_gf_UnitIsInsideTransport(auto9B8D08C5_var) == false)) {
                            if ((libNtve_gf_UnitInRegion(auto9B8D08C5_var, RegionCircle(gf_EnemyCampUnitsHomePosition(auto9B8D08C5_var), 1.0)) == true)) {
                                if ((UnitGroupCount(gv_enemyCamps[lv_enemyCampIndex].lv_targetDummies, c_unitCountAlive) > 0)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:14077

    UnitControlGroupRemoveUnit(lv_lVPlayer, 4, lv_vikingCargoUnit);
    UnitControlGroupAddUnit(lv_lVPlayer, 4, lv_fakeSelectionVehicle);
    while ((libNtve_gf_UnitIsInsideTransport(lv_vikingCargoUnit) == true)) {
        UnitSetPosition(lv_fakeSelectionVehicle, UnitGetPosition(libGame_gf_HeroEnteredTransportTransport()), true);
        Wait(0.0625, c_timeGame);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:16117

    }

    if ((libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_cargoPlayer].lv_heroUnit) == true)) {
        libGame_gv_players[lv_cargoPlayer].lv_cameraPlayerUnitGroupToFocusOn = libNtve_gf_ConvertUnitToUnitGroup(UnitTransport(libGame_gv_players[lv_cargoPlayer].lv_heroUnit));
        libGame_gf_CameraUpdateCameraForPlayer(lv_cargoPlayer);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:20174

                Wait(0.0625, c_timeGame);
            }
            if ((UnitFilterMatch(autoF44E8865_var, UnitGetOwner(autoF44E8865_var), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (((libGame_gv_players[UnitGetOwner(autoF44E8865_var)].lv_activeVehicle != null) && (libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_activeVehicle) == true)) || ((libGame_gv_players[UnitGetOwner(autoF44E8865_var)].lv_activeVehicle == null) && (libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_heroUnit) == true)))) {
                UnitCreateEffectUnit(autoF44E8865_var, "RexxarMishaCommandRemoveTargetPriorityBuffSearch", autoF44E8865_var);
                UnitSetPosition(autoF44E8865_var, UnitGetPosition(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_heroUnit), false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:20174

                Wait(0.0625, c_timeGame);
            }
            if ((UnitFilterMatch(autoF44E8865_var, UnitGetOwner(autoF44E8865_var), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (((libGame_gv_players[UnitGetOwner(autoF44E8865_var)].lv_activeVehicle != null) && (libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_activeVehicle) == true)) || ((libGame_gv_players[UnitGetOwner(autoF44E8865_var)].lv_activeVehicle == null) && (libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_heroUnit) == true)))) {
                UnitCreateEffectUnit(autoF44E8865_var, "RexxarMishaCommandRemoveTargetPriorityBuffSearch", autoF44E8865_var);
                UnitSetPosition(autoF44E8865_var, UnitGetPosition(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_heroUnit), false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:16200

            }

            if ((libNtve_gf_UnitIsInsideTransport(lv_heroUnit) == true)) {
                lv_heroUnit = UnitTransport(libGame_gv_players[lv_player].lv_heroUnit);
            }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:21198

    }

    if ((libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_player].lv_heroUnit) == true)) {
        libUIUI_gf_UIHeroConsoleSetUpForPlayer(UnitTransport(libGame_gv_players[lv_player].lv_heroUnit), lv_player);
        libUIUI_gf_HeroConsoleUnitStatusBarsSetUnitForBars(UnitTransport(libGame_gv_players[lv_player].lv_heroUnit), lv_player);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:21255

            }

            if ((libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_player].lv_heroUnit) == true)) {
                libUIUI_gf_UIHeroConsoleSetUpForPlayer(UnitTransport(libGame_gv_players[lv_player].lv_heroUnit), lv_player);
                libUIUI_gf_HeroConsoleUnitStatusBarsSetUnitForBars(UnitTransport(libGame_gv_players[lv_player].lv_heroUnit), lv_player);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:7110

    }

    if ((libNtve_gf_UnitIsInsideTransport(lv_targetUnit) == true)) {
        lv_transportUnit = UnitTransport(lv_targetUnit);
        while ((UnitIsValid(UnitTransport(lv_transportUnit)) == true)) {

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:442

    lv_pilotUnit = libGame_gv_players[lp_playerID].lv_heroUnit;
    if ((UnitGetType(lv_pilotUnit) == "HeroDVaPilot")) {
        if ((libNtve_gf_UnitIsInsideTransport(lv_pilotUnit) == false)) {
            return lv_pilotUnit;
        }

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:1658

        }

        if (!((libNtve_gf_UnitIsInsideTransport(lv_dVaUnit) == false))) {
            return false;
        }

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:1693

    // Conditions
    if (testConds) {
        if (!((libNtve_gf_UnitIsInsideTransport(lv_dVaPilot) == true))) {
            return false;
        }

mods/heromods/dva.stormmodbase.stormdata/LibHDVA.galaxy:1791

        }

        if (!((libNtve_gf_UnitIsInsideTransport(lv_dVaHeroUnit) == true))) {
            return false;
        }

mods/heromods/samuro.stormmodbase.stormdata/LibHSAM.galaxy:645

    UnitControlGroupRemoveUnit(lv_samuroPlayer, 4, lv_samuroCargoUnit);
    UnitControlGroupAddUnit(lv_samuroPlayer, 4, lv_fakeSelectionVehicle);
    while ((libNtve_gf_UnitIsInsideTransport(lv_samuroCargoUnit) == true)) {
        UnitSetPosition(lv_fakeSelectionVehicle, UnitGetPosition(libGame_gf_HeroEnteredTransportTransport()), true);
        Wait(0.0625, c_timeGame);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:6129

        auto4EE0289E_var = UnitGroupUnitFromEnd(auto4EE0289E_g, auto4EE0289E_u);
        if (auto4EE0289E_var == null) { break; }
        if ((UnitIsAlive(auto4EE0289E_var) == true) && (libNtve_gf_UnitIsInsideTransport(auto4EE0289E_var) == false)) {
            lv_allUnitsAreCargoOrDead = false;
            if ((libNtve_gf_UnitInRegion(auto4EE0289E_var, RegionFromId(41)) == true) && (UnitIsAlive(gv_herculesUnit) == true)) {

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1161

    lv_banshee = UnitLastCreated();
    UnitGroupAdd(gv_cinematicTempUnits, UnitLastCreated());
    while ((UnitIsAlive(lv_banshee) == true) && (UnitIsAlive(lp_escourtTarget) == true) && (libNtve_gf_UnitIsInsideTransport(gv_cinematicNova) == true)) {
        UnitIssueOrder(lv_banshee, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lp_escourtTarget), lp_distance, lp_angle)), c_orderQueueReplace);
        Wait(0.25, c_timeReal);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1197

    // Implementation
    CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), true, false);
    while ((libNtve_gf_UnitIsInsideTransport(gv_cinematicNova) == true) && (UnitIsAlive(lp_escourtTarget) == true)) {
        Wait(0.25, c_timeReal);
    }

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1265

    // Automatic Variable Declarations
    // Implementation
    while (!((libNtve_gf_UnitIsInsideTransport(lp_tank) == false))) {
        Wait(0.25, c_timeReal);
    }

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:2248

    UnitCargoCreate(lv_overlord, "NovaInfestedSiegeTankUprooted", 1);
    lv_infestedSiegeTank = UnitCargoLastCreated();
    while ((libNCMI_gf_GameIsOver() == false) && (libNCMI_gf_PlayerInCinematicModeCampaign() == false) && (UnitIsAlive(lv_overlord) == true) && (libNtve_gf_UnitIsInsideTransport(lv_infestedSiegeTank) == true)) {
        UnitIssueOrder(lv_overlord, OrderTargetingPoint(AbilityCommand("OverlordTransport", 2), lp_dropPoint), c_orderQueueReplace);
        Wait(1.0, c_timeAI);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:4485

                        auto82F34D82_var = UnitGroupUnitFromEnd(auto82F34D82_g, auto82F34D82_u);
                        if (auto82F34D82_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(auto82F34D82_var) == false)) {
                            if ((UnitGroupCount(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                                UnitIssueOrder(auto82F34D82_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto82F34D82_var)))), c_orderQueueReplace);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:4503

                        autoA8AF1846_var = UnitGroupUnitFromEnd(autoA8AF1846_g, autoA8AF1846_u);
                        if (autoA8AF1846_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(autoA8AF1846_var) == false)) {
                            if ((UnitGroupCount(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                                UnitIssueOrder(autoA8AF1846_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(autoA8AF1846_var)))), c_orderQueueReplace);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:4526

                        auto228A2A62_var = UnitGroupUnitFromEnd(auto228A2A62_g, auto228A2A62_u);
                        if (auto228A2A62_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(auto228A2A62_var) == true)) {
                            UnitRemove(auto228A2A62_var);
                        }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:6129

        auto4EE0289E_var = UnitGroupUnitFromEnd(auto4EE0289E_g, auto4EE0289E_u);
        if (auto4EE0289E_var == null) { break; }
        if ((UnitIsAlive(auto4EE0289E_var) == true) && (libNtve_gf_UnitIsInsideTransport(auto4EE0289E_var) == false)) {
            lv_allUnitsAreCargoOrDead = false;
            if ((libNtve_gf_UnitInRegion(auto4EE0289E_var, RegionFromId(41)) == true) && (UnitIsAlive(gv_herculesUnit) == true)) {

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:1161

    lv_banshee = UnitLastCreated();
    UnitGroupAdd(gv_cinematicTempUnits, UnitLastCreated());
    while ((UnitIsAlive(lv_banshee) == true) && (UnitIsAlive(lp_escourtTarget) == true) && (libNtve_gf_UnitIsInsideTransport(gv_cinematicNova) == true)) {
        UnitIssueOrder(lv_banshee, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(lp_escourtTarget), lp_distance, lp_angle)), c_orderQueueReplace);
        Wait(0.25, c_timeReal);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:1197

    // Implementation
    CameraFollowUnitGroup(gv_pLAYER_01_USER, libNtve_gf_ConvertUnitToUnitGroup(lp_escourtTarget), true, false);
    while ((libNtve_gf_UnitIsInsideTransport(gv_cinematicNova) == true) && (UnitIsAlive(lp_escourtTarget) == true)) {
        Wait(0.25, c_timeReal);
    }

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:1265

    // Automatic Variable Declarations
    // Implementation
    while (!((libNtve_gf_UnitIsInsideTransport(lp_tank) == false))) {
        Wait(0.25, c_timeReal);
    }

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:2248

    UnitCargoCreate(lv_overlord, "NovaInfestedSiegeTankUprooted", 1);
    lv_infestedSiegeTank = UnitCargoLastCreated();
    while ((libNCMI_gf_GameIsOver() == false) && (libNCMI_gf_PlayerInCinematicModeCampaign() == false) && (UnitIsAlive(lv_overlord) == true) && (libNtve_gf_UnitIsInsideTransport(lv_infestedSiegeTank) == true)) {
        UnitIssueOrder(lv_overlord, OrderTargetingPoint(AbilityCommand("OverlordTransport", 2), lp_dropPoint), c_orderQueueReplace);
        Wait(1.0, c_timeAI);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:4485

                        auto82F34D82_var = UnitGroupUnitFromEnd(auto82F34D82_g, auto82F34D82_u);
                        if (auto82F34D82_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(auto82F34D82_var) == false)) {
                            if ((UnitGroupCount(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                                UnitIssueOrder(auto82F34D82_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto82F34D82_var)))), c_orderQueueReplace);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:4503

                        autoA8AF1846_var = UnitGroupUnitFromEnd(autoA8AF1846_g, autoA8AF1846_u);
                        if (autoA8AF1846_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(autoA8AF1846_var) == false)) {
                            if ((UnitGroupCount(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                                UnitIssueOrder(autoA8AF1846_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroupFilter(null, gv_pLAYER_01_USER, lv_validPlayerUnits, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(autoA8AF1846_var)))), c_orderQueueReplace);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:4526

                        auto228A2A62_var = UnitGroupUnitFromEnd(auto228A2A62_g, auto228A2A62_u);
                        if (auto228A2A62_var == null) { break; }
                        if ((libNtve_gf_UnitIsInsideTransport(auto228A2A62_var) == true)) {
                            UnitRemove(auto228A2A62_var);
                        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33208

                lv_indexUnit = UnitGroupUnitFromEnd(auto7D09EFD3_g, auto7D09EFD3_u);
                if (lv_indexUnit == null) { break; }
                if (((UnitTestState(lv_indexUnit, c_unitStateUsingSupply) == false) || ((libNtve_gf_UnitIsHidden(lv_indexUnit) == true) && (libNtve_gf_UnitIsInsideTransport(lv_indexUnit) == false)))) {
                    continue;
                }