# Unit Rally Point Target Count

Grammar — Rally point target count for point point of unit
FlagsNative | Function

Returns the rally point target count of a unit.

# Arguments

  • unit — Unit
  • int — Point

Returns — int

native int UnitRallyPointTargetCount(
	unit inUnit,
	int inPoint,
);

Category: Unit / Orders

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17225

    }

    if ((UnitRallyPointTargetCount(lv_nearbyTownHall, 2) == 0)) {
        return true;
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:19617

    }

    while ((lv_waitCount > 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        lv_waitCount -= 1;
        Wait(0.0625, c_timeReal);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:19617

    }

    while ((lv_waitCount > 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        lv_waitCount -= 1;
        Wait(0.0625, c_timeReal);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:19621

        Wait(0.0625, c_timeReal);
    }
    if ((UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        libSwaC_gf_SetHatcheryRallyPoint(EventUnitProgressUnit(), null);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:19621

        Wait(0.0625, c_timeReal);
    }
    if ((UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        libSwaC_gf_SetHatcheryRallyPoint(EventUnitProgressUnit(), null);
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8720

    }

    while ((lv_waitCount > 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        lv_waitCount -= 1;
        Wait(0.0625, c_timeReal);

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8720

    }

    while ((lv_waitCount > 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        lv_waitCount -= 1;
        Wait(0.0625, c_timeReal);

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8724

        Wait(0.0625, c_timeReal);
    }
    if ((UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        libA3DDD02B_gf_SetHatcheryRallyPoint(EventUnitProgressUnit(), null);
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:8724

        Wait(0.0625, c_timeReal);
    }
    if ((UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
        libA3DDD02B_gf_SetHatcheryRallyPoint(EventUnitProgressUnit(), null);
    }