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

◆ UnlockFromParent()

void UnlockFromParent ( )
private

Unlocks this item from its attachment slot of its parent.

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

775 {
776 EntityAI parent = GetHierarchyParent();
777
778 if (parent)
779 {
780 InventoryLocation inventory_location_to_unlock = new InventoryLocation;
781 GetInventory().GetCurrentInventoryLocation(inventory_location_to_unlock);
782 parent.GetInventory().SetSlotLock(inventory_location_to_unlock.GetSlot(), false);
783 }
784 }
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:30

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

Используется в DestroyPlant(), CarWheel_Ruined::EEHealthLevelChanged(), InventoryItemSuper::EEHealthLevelChanged() и RemovePlantEx().