Unlocks this item from its attachment slot of its parent.
866 {
867 EntityAI parent = GetHierarchyParent();
868
869 if (parent)
870 {
871 InventoryLocation inventory_location_to_unlock = new InventoryLocation;
872 GetInventory().GetCurrentInventoryLocation(inventory_location_to_unlock);
873 parent.GetInventory().SetSlotLock(inventory_location_to_unlock.
GetSlot(),
false);
874 }
875 }
proto native int GetSlot()
returns slot id if current type is Attachment