DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CanDisplayAnyAttachmentSlot()

bool Entity::CanDisplayAnyAttachmentSlot ( )
inlineprotected
Возвращает
true if any attachment slot can be shown

См. определение в файле EntityAI.c строка 1718

1719 {
1720 int count = GetInventory().GetAttachmentSlotsCount();
1721 int slotID;
1722 for (int i = 0; i < count; i++)
1723 {
1724 slotID = GetInventory().GetAttachmentSlotId(i);
1725 if (CanDisplayAttachmentSlot(slotID))
1726 {
1727 return true;
1728 }
1729 }
1730
1731 return false;
1732 }
bool CanDisplayAttachmentSlot(string slot_name)
Определения EntityAI.c:1700
proto native GameInventory GetInventory()
proto native int GetAttachmentSlotsCount()
proto native int GetAttachmentSlotId(int index)

Перекрестные ссылки CanDisplayAttachmentSlot() и GetInventory().