# Unit Rally Point Target Point
Grammar — Rally point target point for point point with target target for unit
Flags —Native
|Function
Returns the the target point of a rally point.
# Arguments
unit
— Unitint
— Pointint
— Target
Returns — point
native point UnitRallyPointTargetPoint(
unit inUnit,
int inPoint,
int inTarget,
);
# 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:17229
}
if ((OrderGetTargetPosition(UnitOrder(EventUnitCreatedUnit(), 0)) != UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1))) {
return true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17233
}
UnitIssueOrder(EventUnitCreatedUnit(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1), (lv_overshootDistance + RandomFixed((0.0 - lv_distanceVariance), lv_distanceVariance)), (AngleBetweenPoints(UnitGetPosition(lv_nearbyTownHall), UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1)) + RandomFixed((0.0 - lv_angleVariance), lv_angleVariance)))), c_orderQueueReplace);
return true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17233
}
UnitIssueOrder(EventUnitCreatedUnit(), OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1), (lv_overshootDistance + RandomFixed((0.0 - lv_distanceVariance), lv_distanceVariance)), (AngleBetweenPoints(UnitGetPosition(lv_nearbyTownHall), UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1)) + RandomFixed((0.0 - lv_angleVariance), lv_angleVariance)))), c_orderQueueReplace);
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:14194
lv_hero = EventPlayerEffectUsedUnit(c_effectUnitTarget);
lv_facing = UnitGetFacing(lv_beacon);
lv_rally = UnitRallyPointTargetPoint(lv_beacon, 1, 1);
// Actions
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17945
lv_dehakaplayer = UnitGetOwner(lv_dehakaclone);
lv_reviver = libCOMI_gv_cM_HeroReviver[lv_dehakaplayer];
lv_rallyPoint = UnitRallyPointTargetPoint(lv_reviver, 1, 1);
lv_rallyUnit = UnitRallyPointTargetUnit(lv_reviver, 1, 1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17996
lv_dehakaplayer = UnitGetOwner(lv_dehakaclone);
lv_reviver = libCOMI_gv_cM_HeroReviver[lv_dehakaplayer];
lv_rallyPoint = UnitRallyPointTargetPoint(lv_reviver, 1, 1);
lv_rallyUnit = UnitRallyPointTargetUnit(lv_reviver, 1, 1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:27757
lv_point = UnitGetPosition(lv_summoned);
lv_ug = UnitGroupEmpty();
lv_rally = UnitRallyPointTargetPoint(lv_summoned, 1, 1);
lv_p = EventPlayer();