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

◆ AttachmentsWithInventoryOrCargoCount()

int ActionTargetsCursor::AttachmentsWithInventoryOrCargoCount ( notnull GameInventory inventory)
inlineprotected

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

1318 {
1319 int attachmentsWithInventory = 0;
1320
1321 CargoBase cargo = inventory.GetCargo();
1322 if (cargo && cargo.GetItemCount() > 0)
1323 {
1324 return 1;
1325 }
1326
1327 for (int i = 0; i < inventory.AttachmentCount(); i++)
1328 {
1329 EntityAI attachment = inventory.GetAttachmentFromIndex(i);
1330 int attachmentSlotId = attachment.GetInventory().GetSlotId(0);
1331
1332 if (attachment.GetInventory())
1333 {
1334 attachmentsWithInventory += 1;
1335 }
1336 }
1337
1338 return attachmentsWithInventory;
1339 }
class LogManager EntityAI
proto native int GetItemCount()

Перекрестные ссылки CargoBase::GetItemCount().

Используется в GetItemCargoCount().