DayZ 1.27
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.

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

455 {
456 slot_id = InventorySlots.INVALID;
457 slot_name = "";
458 InventoryLocation lcn = new InventoryLocation();
460 if (lcn.GetType() == InventoryLocationType.ATTACHMENT)
461 {
462 slot_id = lcn.GetSlot();
463 slot_name = InventorySlots.GetSlotName(slot_id);
464 return true;
465 }
466 return false;
467 }
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.