См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1796
Перекрестные ссылки CanDisplayAttachmentSlot(), GameInventory::GetAttachmentSlotId(), GameInventory::GetAttachmentSlotsCount() и GetInventory().