void main()
{
    object oPC = GetPCSpeaker();
    object oItem = GetItemInSlot(INVENTORY_SLOT_HEAD, oPC);
    if (GetIsObjectValid(oItem))
    {
        //ActionUnEquip didn't work, so put a copy in inventory and then destroy the one in the slot
        object oCopy = CopyItem(oItem, oPC, TRUE);
        DestroyObject(oItem);
    }
}