912 {
913 if (!super.CanReleaseAttachment(attachment))
914 {
915 return false;
916 }
917
919 {
920 return false;
921 }
922
923 if (attachment && attachment.Type().IsInherited(CarWheel))
924 {
925 InventoryLocation attachmentInventoryLocation = new InventoryLocation();
926 attachment.GetInventory().GetCurrentInventoryLocation(attachmentInventoryLocation);
927
928 string slotSelectionName;
929 InventorySlots.GetSelectionForSlotId(attachmentInventoryLocation.
GetSlot(), slotSelectionName);
930
931 switch (slotSelectionName)
932 {
933 case "wheel_spare_1":
934 case "wheel_spare_2":
936 break;
937 }
938 }
939
940 return true;
941 }
bool CanManipulateSpareWheel(string slotSelectionName)
proto native int GetSlot()
returns slot id if current type is Attachment