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

◆ HasAnyCargo()

bool Entity::HasAnyCargo ( )
inlineprotected

is this container empty or not, checks only cargo

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

679 {
680 CargoBase cargo = GetInventory().GetCargo();
681
682 if(!cargo) return false;//this is not a cargo container
683
684 return cargo.GetItemCount() > 0;
685 }
proto native int GetItemCount()
proto native GameInventory GetInventory()
proto native CargoBase GetCargo()
cargo

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

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