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

◆ CanDisplayAnyAttachmentSlot()

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

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1796

1797 {
1798 GameInventory inventory = GetInventory();
1799 int count = inventory.GetAttachmentSlotsCount();
1800 int slotID;
1801 for (int i = 0; i < count; ++i)
1802 {
1803 slotID = inventory.GetAttachmentSlotId(i);
1804 if (CanDisplayAttachmentSlot(slotID))
1805 {
1806 return true;
1807 }
1808 }
1809
1810 return false;
1811 }
proto native GameInventory GetInventory()
bool CanDisplayAttachmentSlot(int slot_id)
proto native int GetAttachmentSlotsCount()
proto native int GetAttachmentSlotId(int index)

Перекрестные ссылки CanDisplayAttachmentSlot(), GameInventory::GetAttachmentSlotId(), GameInventory::GetAttachmentSlotsCount() и GetInventory().