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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

61 {
62 Object target_object = action_data.m_Target.GetObject();
63 FireplaceBase fireplace_target = FireplaceBase.Cast( target_object );
64
65 if ( fireplace_target.CanDismantleOven() )
66 {
67 ItemBase attached_item = ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
68
69 // for backward compatibility - for the cases built before slot locking was commented out for the stone att slot
70 InventoryLocation inventory_location = new InventoryLocation;
71 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
72 fireplace_target.GetInventory().SetSlotLock( inventory_location.GetSlot(), false );
73
74 //set oven state
75 fireplace_target.SetOvenState( false );
76
77 // extend lifetime (either back to stone circle lifetime or standard fireplace one)
78 if ( fireplace_target.HasStoneCircle() )
79 {
80 fireplace_target.SetLifetimeMax( FireplaceBase.LIFETIME_FIREPLACE_STONE_CIRCLE );
81 }
82 else
83 {
84 fireplace_target.SetLifetimeMax( 10800 );
85 }
86 }
87 }
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:29
Определения InventoryItem.c:731
Определения ObjectTyped.c:2

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