# Unit Tracked Group

Grammar — Tracked Unit Group of inUnit for behavior inConjoinedBehavior
FlagsNative | Function

Returns the tracked unit group of a unit given a unit tracker behavior

# Arguments

  • unit — Tracker Unit
  • string<gamelink::Behavior> — Unit Tracker Behavior

Returns — unitgroup

native unitgroup UnitGetTrackedUnitGroup(
	unit inUnit,
	string inConjoinedBehavior,
);

Category: Behavior / Unit Tracker

# Examples

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

    }

    lv_dropshipBeacon = UnitGroupUnit(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), 1);
    lv_positionOfBeacon = UnitGetPosition(lv_dropshipBeacon);
    lv_alliedPlayersAnnouncementGroup = libGame_gf_AlliedPlayerGroupOfPlayer(lv_medicPlayer);

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

    lv_player = UnitGetOwner(lv_dropship);
    lv_medivacPoint = UnitGetPosition(lv_dropship);
    lv_dropshipBeacon = UnitGroupUnit(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), 1);
    lv_positionOfBeacon = UnitGetPosition(lv_dropshipBeacon);

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

    }

    if ((UnitGroupCount(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), c_unitCountAlive) > 0)) {
        UnitKill(UnitGroupUnit(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), 1));
    }

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


    if ((UnitGroupCount(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), c_unitCountAlive) > 0)) {
        UnitKill(UnitGroupUnit(UnitGetTrackedUnitGroup(lv_dropship, "MedicMedivacBeaconTrackerBehavior"), 1));
    }

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

    }

    lv_raynorsRaidersBanshees = UnitGetTrackedUnitGroup(EventPlayerEffectUsedUnit(c_effectUnitCaster), "RaynorRaynorsRaidersUnitTracker");
    lv_bansheeTargetUnit = EventPlayerEffectUsedUnit(c_effectUnitTarget);
    auto91691D68_g = lv_raynorsRaidersBanshees;

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

    }

    autoD0FD4CB9_g = UnitGetTrackedUnitGroup(lv_unit, "RaynorRaynorsRaidersUnitTracker");
    autoD0FD4CB9_u = UnitGroupCount(autoD0FD4CB9_g, c_unitCountAll);
    for (;; autoD0FD4CB9_u -= 1) {

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

    }

    autoEE8FA48C_g = UnitGetTrackedUnitGroup(lv_unit, "RaynorRaynorsRaidersUnitTracker");
    autoEE8FA48C_u = UnitGroupCount(autoEE8FA48C_g, c_unitCountAll);
    for (;; autoEE8FA48C_u -= 1) {

mods/heromods/ana.stormmodbase.stormdata/LibHANA.galaxy:593

    }

    autoA6DE93B0_g = UnitGetTrackedUnitGroup(lv_anaUnit, "AnaHealingDartConcentratedDosesPlayerTracker");
    autoA6DE93B0_u = UnitGroupCount(autoA6DE93B0_g, c_unitCountAll);
    for (;; autoA6DE93B0_u -= 1) {

mods/heromods/imperius.stormmodbase.stormdata/LibHIMP.galaxy:182

    if ((UnitHasBehavior2(lv_targetUnit, "ImperiusCelestialChargeCasterChannelBuff") == true)) {
        lv_imperiusUnit = lv_targetUnit;
        autoB6DFFF06_g = UnitGetTrackedUnitGroup(lv_imperiusUnit, "ImperiusCelestialChargeUnitTracker");
        autoB6DFFF06_u = UnitGroupCount(autoB6DFFF06_g, c_unitCountAll);
        for (;; autoB6DFFF06_u -= 1) {

mods/heromods/junkrat.stormmodbase.stormdata/LibHJUN.galaxy:233

    }

    lv_junkratTrackedTraps = UnitGetTrackedUnitGroup(lv_junkrat, "JunkratSteelTrapUnitTracker");
    lv_arrayIterator = 1;
    for ( ; ( (auto4B46B7E5_ai >= 0 && lv_arrayIterator <= auto4B46B7E5_ae) || (auto4B46B7E5_ai < 0 && lv_arrayIterator >= auto4B46B7E5_ae) ) ; lv_arrayIterator += auto4B46B7E5_ai ) {

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1352

        lv_itBehavior = UnitBehaviorGet(auto37CC6DB9_u, auto37CC6DB9_i);
        if ((CatalogEntryScope(c_gameCatalogBehavior, lv_itBehavior) == "CBehaviorUnitTracker")) {
            lv_ug = UnitGetTrackedUnitGroup(lv_u, lv_itBehavior);
            auto9CEDDE2C_g = lv_ug;
            auto9CEDDE2C_u = UnitGroupCount(auto9CEDDE2C_g, c_unitCountAll);

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:413

    }

    if ((UnitGroupCount(UnitGetTrackedUnitGroup(lp_aIUnit, (((lp_abil) + "@UniqueSummonTracker"))), c_unitCountAlive) > 0)) {
        return ;
    }