# Order Set Target Item
Grammar — Set Target Item for inOrder to inItem
Flags —Native
|Action
# Arguments
order
— Orderunit
— Item
Returns — void
native void OrderSetTargetItem(order inOrder, unit inItem);
# 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
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3563
// Implementation
lv_reviveOrder = OrderTargetingPoint(lp_abilCmd, lp_p);
OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
return lv_reviveOrder;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3576
// Implementation
lv_reviveOrder = Order(lp_abilCmd);
OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
return lv_reviveOrder;
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3032
// Implementation
lv_reviveOrder = OrderTargetingPoint(lp_abilCmd, lp_p);
OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
return lv_reviveOrder;
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3045
// Implementation
lv_reviveOrder = Order(lp_abilCmd);
OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
return lv_reviveOrder;
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:36
unit item=AIUnitGetItem(aiUnit,itemType);
if(item==null){return null;}
OrderSetTargetItem(ord,item);
return ord;
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicTactical.galaxy:58
else {
}
OrderSetTargetItem(lv_order, lp_item);
}
else {