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

◆ UnlockFromParent()

void InventoryItem::UnlockFromParent ( )
inlineprivate

Unlocks this item from its attachment slot of its parent.

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

866 {
867 EntityAI parent = GetHierarchyParent();
868
869 if (parent)
870 {
871 InventoryLocation inventory_location_to_unlock = new InventoryLocation;
872 GetInventory().GetCurrentInventoryLocation(inventory_location_to_unlock);
873 parent.GetInventory().SetSlotLock(inventory_location_to_unlock.GetSlot(), false);
874 }
875 }
class LogManager EntityAI
proto native int GetSlot()
returns slot id if current type is Attachment

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