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

◆ AttachmentsWithInventoryOrCargoCount()

int ActionTargetsCursor::AttachmentsWithInventoryOrCargoCount ( notnull GameInventory inventory)
inlineprotected

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

1306 {
1307 int attachmentsWithInventory = 0;
1308
1309 CargoBase cargo = inventory.GetCargo();
1310 if (cargo && cargo.GetItemCount() > 0)
1311 {
1312 return 1;
1313 }
1314
1315 for (int i = 0; i < inventory.AttachmentCount(); i++)
1316 {
1317 EntityAI attachment = inventory.GetAttachmentFromIndex(i);
1318 int attachmentSlotId = attachment.GetInventory().GetSlotId(0);
1319
1320 if (attachment.GetInventory())
1321 {
1322 attachmentsWithInventory += 1;
1323 }
1324 }
1325
1326 return attachmentsWithInventory;
class LogManager EntityAI
proto native int GetItemCount()

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

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