# Unit Rally Point Target Point

Grammar — Rally point target point for point point with target target for unit
FlagsNative | Function

Returns the the target point of a rally point.

# Arguments

  • unit — Unit
  • int — Point
  • int — Target

Returns — point

native point UnitRallyPointTargetPoint(
	unit inUnit,
	int inPoint,
	int inTarget,
);

Category: Unit / Orders

# Examples

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

    }

    if ((OrderGetTargetPosition(UnitOrder(EventUnitCreatedUnit(), 0)) != UnitRallyPointTargetPoint(lv_nearbyTownHall, 2, 1))) {
        return true;
    }

campaigns/swarmstory.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibCOMI.galaxy:27757

    lv_point = UnitGetPosition(lv_summoned);
    lv_ug = UnitGroupEmpty();
    lv_rally = UnitRallyPointTargetPoint(lv_summoned, 1, 1);
    lv_p = EventPlayer();