# Unit Rally Point Target Count
Grammar — Rally point target count for point point of unit
Flags —Native
|Function
Returns the rally point target count of a unit.
# Arguments
unit
— Unitint
— Point
Returns — int
native int UnitRallyPointTargetCount(
unit inUnit,
int inPoint,
);
# Related
Category: Unit / Orders
- Triggering Order —
order
— EventUnitOrder - Issue Order —
bool
— UnitIssueOrder - Issue Order To Unit Group —
bool
— UnitGroupIssueOrder - Unit Order Count —
int
— UnitOrderCount - Unit Order —
order
— UnitOrder - Unit Order Is Acquired —
bool
— UnitOrderIsAcquired - Unit Has Order With Ability —
bool
— UnitOrderHasAbil - Unit Is Issued Order —
void
— TriggerAddEventUnitOrder - Unit Becomes Idle —
void
— TriggerAddEventUnitBecomesIdle - Wait Until Unit Becomes Idle —
void
— UnitWaitUntilIdle - Wait Until Unit Group Becomes Idle —
void
— UnitGroupWaitUntilIdle - Unit Rally Point —
int
— UnitRallyPoint - Unit Rally Point Count —
int
— UnitRallyPointCount - Unit Rally Point Target Count —
int
— UnitRallyPointTargetCount - Unit Rally Point Target Point —
point
— UnitRallyPointTargetPoint - Unit Rally Point Target Unit —
unit
— UnitRallyPointTargetUnit - Unit Order Get Progress —
fixed
— UnitOrderGetProgress
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17225
}
if ((UnitRallyPointTargetCount(lv_nearbyTownHall, 2) == 0)) {
return true;
}
campaigns/swarmstory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibA3DDD02B.galaxy:8724
Wait(0.0625, c_timeReal);
}
if ((UnitRallyPointTargetCount(EventUnitProgressUnit(), 1) == 0) && (UnitRallyPointTargetCount(EventUnitProgressUnit(), 2) == 0)) {
libA3DDD02B_gf_SetHatcheryRallyPoint(EventUnitProgressUnit(), null);
}