# Escorts Of Unit Group

Grammar — Escorts of unitGroup|Unit Group
FlagsNative | Function

Returns a group of all of the units assigned to escort a unit group.

# Arguments

  • unitgroup — UnitGroup

Returns — unitgroup

native unitgroup AIGetAllEscortsGroup(unitgroup ug);

Category: AI / MiscCampaign / Functions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2687

        }

        auto9A060CE7_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
        auto9A060CE7_u = UnitGroupCount(auto9A060CE7_g, c_unitCountAll);
        for (;; auto9A060CE7_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2743

    UnitForceStatusBar(gf_NodeMatchingCustomValue(FixedToInt(UnitGetCustomValue(EventUnit(), 0))), false);
    PingDestroy(gv_protossHarvesterPings[FixedToInt(UnitGetCustomValue(EventUnit(), 0))]);
    auto16B0C7AE_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
    auto16B0C7AE_u = UnitGroupCount(auto16B0C7AE_g, c_unitCountAll);
    for (;; auto16B0C7AE_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2814

    gv_protossScore = (gv_protossScore + 1);
    TriggerExecute(gt_PrimaryObjectiveCollectTerrazineUpdate, true, false);
    auto8E33FE20_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
    auto8E33FE20_u = UnitGroupCount(auto8E33FE20_g, c_unitCountAll);
    for (;; auto8E33FE20_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:2687

        }

        auto9A060CE7_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
        auto9A060CE7_u = UnitGroupCount(auto9A060CE7_g, c_unitCountAll);
        for (;; auto9A060CE7_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:2743

    UnitForceStatusBar(gf_NodeMatchingCustomValue(FixedToInt(UnitGetCustomValue(EventUnit(), 0))), false);
    PingDestroy(gv_protossHarvesterPings[FixedToInt(UnitGetCustomValue(EventUnit(), 0))]);
    auto16B0C7AE_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
    auto16B0C7AE_u = UnitGroupCount(auto16B0C7AE_g, c_unitCountAll);
    for (;; auto16B0C7AE_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:2814

    gv_protossScore = (gv_protossScore + 1);
    TriggerExecute(gt_PrimaryObjectiveCollectTerrazineUpdate, true, false);
    auto8E33FE20_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
    auto8E33FE20_u = UnitGroupCount(auto8E33FE20_g, c_unitCountAll);
    for (;; auto8E33FE20_u -= 1) {