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

◆ LockToParent()

void LockToParent ( )
private

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 строка 761

762 {
763 EntityAI parent = GetHierarchyParent();
764
765 if (parent)
766 {
767 InventoryLocation inventory_location_to_lock = new InventoryLocation;
768 GetInventory().GetCurrentInventoryLocation(inventory_location_to_lock);
769 parent.GetInventory().SetSlotLock(inventory_location_to_lock.GetSlot(), true);
770 }
771 }
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:30

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