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

◆ HasAnyCargo()

bool Entity::HasAnyCargo ( )
inlineprotected

Is this container empty or not, checks only cargo

Заметки
: Does NOT include count of items in cargo of items that are themselves in cargo

Does the item has any cargo?

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

666 {
668 CargoBase cargo = GetInventory().GetCargo();
669 if (!cargo)
670 return false;
671
672 return cargo.GetItemCount() > 0;
673 }
proto native int GetItemCount()
proto native GameInventory GetInventory()
proto native CargoBase GetCargo()
cargo

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

Используется в HasAnyAttachmentsOrCargo() и IsEmpty().