# Order Set Target Item

Grammar — Set Target Item for inOrder to inItem
FlagsNative | Action

# Arguments

  • order — Order
  • unit — Item

Returns — void

native void OrderSetTargetItem(order inOrder, unit inItem);

Category: Order / Orders To Be Issued

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3563

    // Implementation
    lv_reviveOrder = OrderTargetingPoint(lp_abilCmd, lp_p);
    OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
    return lv_reviveOrder;
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3576

    // Implementation
    lv_reviveOrder = Order(lp_abilCmd);
    OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
    return lv_reviveOrder;
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3032

    // Implementation
    lv_reviveOrder = OrderTargetingPoint(lp_abilCmd, lp_p);
    OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
    return lv_reviveOrder;
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3045

    // Implementation
    lv_reviveOrder = Order(lp_abilCmd);
    OrderSetTargetItem(lv_reviveOrder, lp_reviveUnit);
    return lv_reviveOrder;
}

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:36

    unit item=AIUnitGetItem(aiUnit,itemType);
    if(item==null){return null;}
    OrderSetTargetItem(ord,item);
    return ord;
}

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:58

        else {
        }
        OrderSetTargetItem(lv_order, lp_item);
    }
    else {