858 {
859 if (!super.CanReleaseAttachment(attachment))
860 {
861 return false;
862 }
863
865 {
866 return false;
867 }
868
869 if (attachment && attachment.Type().IsInherited(CarWheel))
870 {
871 InventoryLocation attachmentInventoryLocation = new InventoryLocation();
872 attachment.GetInventory().GetCurrentInventoryLocation(attachmentInventoryLocation);
873
874 string slotSelectionName;
875 InventorySlots.GetSelectionForSlotId(attachmentInventoryLocation.
GetSlot(), slotSelectionName);
876
877 switch (slotSelectionName)
878 {
879 case "wheel_spare_1":
880 case "wheel_spare_2":
882 break;
883 }
884 }
885
886 return true;
887 }
bool CanManipulateSpareWheel(string slotSelectionName)
proto native int GetSlot()
returns slot id if current type is Attachment