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