826 {
827 if (!super.CanReleaseAttachment(attachment))
828 {
829 return false;
830 }
831
833 {
834 return false;
835 }
836
837 if (attachment && attachment.Type().IsInherited(
CarWheel))
838 {
840 attachment.GetInventory().GetCurrentInventoryLocation(attachmentInventoryLocation);
841
842 string slotSelectionName;
844
845 switch (slotSelectionName)
846 {
847 case "wheel_spare_1":
848 case "wheel_spare_2":
850 break;
851 }
852 }
853
854 return true;
855 }
bool CanManipulateSpareWheel(string slotSelectionName)
proto native int GetSlot()
returns slot id if current type is Attachment
static proto bool GetSelectionForSlotId(int slot_Id, out string selection)
provides access to slot configuration