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

◆ HasAnyCargo()

bool Entity::HasAnyCargo ( )
inlineprotected

is this container empty or not, checks only cargo

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

667 {
668 CargoBase cargo = GetInventory().GetCargo();
669
670 if(!cargo) return false;//this is not a cargo container
671
672 if( cargo.GetItemCount() > 0 )
673 {
674 return true;
675 }
676 else
677 {
678 return false;
679 }
680 }
proto native int GetItemCount()
proto native GameInventory GetInventory()
proto native CargoBase GetCargo()
cargo

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

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