797 {
798 if (!super.CanReceiveAttachment(attachment, slotId))
799 return false;
800
802 attachment.GetInventory().GetCurrentInventoryLocation(attachmentInventoryLocation);
803 if (attachmentInventoryLocation.
GetParent() == null)
804 {
805 return true;
806 }
807
808 if (attachment && attachment.Type().IsInherited(
CarWheel))
809 {
810 string slotSelectionName;
812
813 switch (slotSelectionName)
814 {
815 case "wheel_spare_1":
816 case "wheel_spare_2":
818 break;
819 }
820 }
821
822 return true;
823 }
bool CanManipulateSpareWheel(string slotSelectionName)
proto native EntityAI GetParent()
returns parent of current inventory location
static proto bool GetSelectionForSlotId(int slot_Id, out string selection)
provides access to slot configuration