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

◆ IsAttachment()

bool GameInventory::IsAttachment ( )
inlineprotected

Returns true if this Inventory owner is an attachment of something.

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

409 {
410 InventoryLocation lcn = new InventoryLocation();
412 if (lcn.GetType() == InventoryLocationType.ATTACHMENT)
413 {
414 return true;
415 }
416
417 return false;
418 }
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().