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

◆ IsInCargo()

bool GameInventory::IsInCargo ( )
inlineprotected

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

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 397

398 {
399 InventoryLocation lcn = new InventoryLocation();
401 if (lcn.GetType() == InventoryLocationType.CARGO)
402 {
403 return true;
404 }
405
406 return false;
407 }
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().