# Order Set Target Passenger
Grammar — Set Target Passenger for inOrder to inPassenger
Flags —Native
|Action
# Arguments
order
— Orderunit
— Passenger
Returns — void
native void OrderSetTargetPassenger(
order inOrder,
unit inUnit,
);
# 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/Tactical/TactTerrAI.galaxy:868
if (unitToCheck != null) {
ord = AICreateOrder(player, command, e_AB_TransportUnloadUnit); // unload the bunker.
OrderSetTargetPassenger(ord, unitToCheck);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:839
if (unitToCheck != null) {
ord = AICreateOrder(player, command, e_AB_TransportUnloadUnit); // unload the bunker.
OrderSetTargetPassenger(ord, unitToCheck);
}