# Order Set Target Passenger

Grammar — Set Target Passenger for inOrder to inPassenger
FlagsNative | Action

# Arguments

  • order — Order
  • unit — Passenger

Returns — void

native void OrderSetTargetPassenger(
	order inOrder,
	unit inUnit,
);

Category: Order / Orders To Be Issued

# Examples

mods/core.sc2modbase.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.sc2modbase.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:839

            if (unitToCheck != null) {
                ord = AICreateOrder(player, command, e_AB_TransportUnloadUnit); // unload the bunker.
                OrderSetTargetPassenger(ord, unitToCheck);
            }