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

◆ AttachmentsWithInventoryOrCargoCount()

int ActionTargetsCursor::AttachmentsWithInventoryOrCargoCount ( notnull GameInventory inventory)
inlineprotected

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

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

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

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