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

◆ LockToParent()

void InventoryItem::LockToParent ( )
inlineprivate

Locks this item in it's current attachment slot of its parent. This makes the "locked" icon visible in inventory over this item.

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

853 {
854 EntityAI parent = GetHierarchyParent();
855
856 if (parent)
857 {
858 InventoryLocation inventory_location_to_lock = new InventoryLocation;
859 GetInventory().GetCurrentInventoryLocation(inventory_location_to_lock);
860 parent.GetInventory().SetSlotLock(inventory_location_to_lock.GetSlot(), true);
861 }
862 }
class LogManager EntityAI
proto native int GetSlot()
returns slot id if current type is Attachment

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