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

◆ IsInCargo()

bool GameInventory::IsInCargo ( )
inlineprotected

Returns true if this Inventory owner is in cargo of something.

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

396 {
397 InventoryLocation lcn = new InventoryLocation();
399 if (lcn.GetType() == InventoryLocationType.CARGO)
400 {
401 return true;
402 }
403
404 return false;
405 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки GetCurrentInventoryLocation() и InventoryLocation::GetType().

Используется в EntityLightSource::CheckIfParentIsInCargo().