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

◆ HasAttachmentSlot()

bool GameInventory::HasAttachmentSlot ( int slotId)
inlineprotected
Возвращает
true if this entity has attachments slot with id=slotId

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 188

189 {
190 int count = GetAttachmentSlotsCount();
191 for (int i = 0; i < count; i++)
192 {
193 if (GetAttachmentSlotId(i) == slotId)
194 return true;
195 }
196 return false;
197 }
proto native int GetAttachmentSlotsCount()
proto native int GetAttachmentSlotId(int index)

Перекрестные ссылки GetAttachmentSlotId() и GetAttachmentSlotsCount().