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

◆ CanDisplayAnyAttachmentSlot()

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

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

1756 {
1757 GameInventory inventory = GetInventory();
1758 int count = inventory.GetAttachmentSlotsCount();
1759 int slotID;
1760 for (int i = 0; i < count; ++i)
1761 {
1762 slotID = inventory.GetAttachmentSlotId(i);
1763 if (CanDisplayAttachmentSlot(slotID))
1764 {
1765 return true;
1766 }
1767 }
1768
1769 return false;
1770 }
bool CanDisplayAttachmentSlot(string slot_name)
proto native GameInventory GetInventory()
proto native int GetAttachmentSlotsCount()
proto native int GetAttachmentSlotId(int index)

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