1. How can I see what skin the player has chosen when crafting an item?

    I am trying to make instant crafting, but the item I spawn will always have the default skin ID, as I don't know how to get the chosen skin.

    Code:
    private object OnItemCraft( ItemCraftTask task, BasePlayer crafter )
    {
        var itemname = task.blueprint.targetItem.shortname.ToString();         
        int amount = task.amount;
        int chosenSkinID = ??;
     
        return false;
    }

    EDIT: It was pretty easy: task.skinID
     
    Last edited by a moderator: May 3, 2016