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

◆ GetCurrentAttachmentSlotInfo()

bool GameInventory::GetCurrentAttachmentSlotInfo ( out int slot_id,
out string slot_name )
inlineprotected

Returns true if the item is currently attached and outputs attachment slot id and name.

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

457 {
458 slot_id = InventorySlots.INVALID;
459 slot_name = "";
460 InventoryLocation lcn = new InventoryLocation();
462 if (lcn.GetType() == InventoryLocationType.ATTACHMENT)
463 {
464 slot_id = lcn.GetSlot();
465 slot_name = InventorySlots.GetSlotName(slot_id);
466 return true;
467 }
468 return false;
469 }
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 GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки GetCurrentInventoryLocation(), InventoryLocation::GetSlot(), InventorySlots::GetSlotName(), InventoryLocation::GetType() и InventorySlots::INVALID.

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