# Order Set Target Point
Grammar — Set Target Point for inOrder to inPoint
Flags —Native
|Action
# Arguments
order
— Orderpoint
— Point
Returns — void
native void OrderSetTargetPoint(
order inOrder,
point inPoint,
);
# Related
Category: Order / Orders To Be Issued
- Order Targeting Item —
order
— OrderTargetingItem - Order Targeting Point —
order
— OrderTargetingPoint - Revive Order Targeting Point —
order
— libNtve_gf_ReviveOrderTargetingPoint - Order Targeting Relative Points —
order
— OrderTargetingRelativePoint - Order Targeting Unit —
order
— OrderTargetingUnit - Order Targeting Unit Group —
order
— OrderTargetingUnitGroup - Order Targeting Valid Unit In Group —
order
— AIUnitGroupGetValidOrder - Order With No Target —
order
— Order - Revive Order With No Target —
order
— libNtve_gf_ReviveOrderWithNoTarget - Change Autocast Mode —
order
— OrderSetAutoCast - Order Set Target Item —
void
— OrderSetTargetItem - Order Set Target Unit —
void
— OrderSetTargetUnit - Order Set Target Point —
void
— OrderSetTargetPoint - Order Set Target Passenger —
void
— OrderSetTargetPassenger
# Examples
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:100
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:389
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:481
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:100
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:389
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:481
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
campaigns/void.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:866
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:158
}
OrderSetTargetPoint(ord, forceFieldTarget);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:584
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:702
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1332
}
OrderSetTargetPoint(ord, UnitGetPosition(unitToCheck));
if (UnitOrderIsValid(aiUnit, ord)) {
return ord;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1519
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1753
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1820
}
else {
OrderSetTargetPoint(ord, loc);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:137
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:525
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1032
ord = AICreateOrder(player, c_AB_CalldownMULE, 0);
OrderSetTargetPoint(ord, UnitGetPosition(peon));
if (!UnitOrderIsValid(aiUnit, ord)) {
continue;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1061
return false;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1263
}
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1368
return false;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1784
if (AIGetBullyType(aiUnit) == c_TU_LiberatorAG) {
// We should transition to the other bully type if possible
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (UnitOrderIsValid(aiUnit, ord)) {
AICast(aiUnit, ord, c_noMarker, c_castHold);
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1823
}
OrderSetTargetPoint(ord, bestPoint);
if (UnitOrderIsValid(aiUnit, ord)) {
g_liberatorLastGround[player] = AIGetTime();
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:236
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:550
return null;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:613
}
OrderSetTargetPoint(ord, castPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1184
}
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (UnitOrderIsValid(aiUnit, ord)) {
// TODO find nearby valid to root position
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1202
// move to it's position
ord = AICreateOrder(player, c_AB_Move, 0);
OrderSetTargetPoint(ord, UnitGetPosition(bestDropOff));
if (UnitOrderIsValid(aiUnit, ord)) {
AICast(aiUnit, ord, c_noMarker, c_castHold);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:51
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit,ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:97
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:242
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:450
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:745
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:837
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1236
}
OrderSetTargetPoint(ord, loc);
return ord;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:1518
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:160
}
OrderSetTargetPoint(ord, forceFieldTarget);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:566
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:680
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1293
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit,ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1520
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1742
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1809
}
else {
OrderSetTargetPoint(ord, loc);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:140
}
OrderSetTargetPoint(ord, loc);
AICast(aiUnit, ord, c_noMarker, c_castHold);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:505
}
OrderSetTargetPoint(ord, targetPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:993
ord = AICreateOrder(player, c_AB_CalldownMULE, 0);
OrderSetTargetPoint(ord, UnitGetPosition(peon));
if (!UnitOrderIsValid(aiUnit, ord)) {
continue;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1041
return false;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1235
}
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1340
return false;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1738
if (AIGetBullyType(aiUnit) == c_TU_LiberatorAG) {
// We should transition to the other bully type if possible
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (UnitOrderIsValid(aiUnit, ord)) {
AICast(aiUnit, ord, c_noMarker, c_castHold);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1777
}
OrderSetTargetPoint(ord, bestPoint);
if (UnitOrderIsValid(aiUnit, ord)) {
AICast(aiUnit, ord, c_noMarker, c_castHold);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:274
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:313
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:761
return null;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:824
}
OrderSetTargetPoint(ord, castPoint);
if (!UnitOrderIsValid(aiUnit, ord)) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1379
}
OrderSetTargetPoint(ord, UnitGetPosition(aiUnit));
if (UnitOrderIsValid(aiUnit, ord)) {
// TODO find nearby valid to root position
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1397
// move to it's position
ord = AICreateOrder(player, c_AB_Move, 0);
OrderSetTargetPoint(ord, UnitGetPosition(bestDropOff));
if (UnitOrderIsValid(aiUnit, ord)) {
AICast(aiUnit, ord, c_noMarker, c_castHold);
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:93
itemType=c_IT_ScrollofTownPortalAI;
ord=AICreateItemOrder(player,aiUnit,itemType,c_abilInventoryCmdItemTarget);
OrderSetTargetPoint(ord,UnitGetPosition(town));
if (UnitOrderIsValid(aiUnit, ord)) {
return ord;
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:317
return false;
}
OrderSetTargetPoint(ord, loc);
if (!UnitOrderIsValid(aiUnit, ord)) {
return false;