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

◆ UnlockFromParent()

void InventoryItem::UnlockFromParent ( )
inlineprivate

Unlocks this item from its attachment slot of its parent.

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

856 {
857 EntityAI parent = GetHierarchyParent();
858
859 if (parent)
860 {
861 InventoryLocation inventory_location_to_unlock = new InventoryLocation;
862 GetInventory().GetCurrentInventoryLocation(inventory_location_to_unlock);
863 parent.GetInventory().SetSlotLock(inventory_location_to_unlock.GetSlot(), false);
864 }
865 }
class LogManager EntityAI
proto native int GetSlot()
returns slot id if current type is Attachment

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