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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

57 {
58 Object target_object = action_data.m_Target.GetObject();
59 FireplaceBase fireplace_target = FireplaceBase.Cast( target_object );
60
61 if ( fireplace_target.CanBuildStoneCircle() )
62 {
63 ItemBase attached_item = ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
64
65 /*InventoryLocation inventory_location = new InventoryLocation;
66 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
67 fireplace_target.GetInventory().SetSlotLock( inventory_location.GetSlot(), true );*/
68
69 //set oven state
70 fireplace_target.SetStoneCircleState( true );
71
72 // extend lifetime
73 fireplace_target.SetLifetimeMax( FireplaceBase.LIFETIME_FIREPLACE_STONE_CIRCLE );
74 }
75 }
Определения InventoryItem.c:731
Определения ObjectTyped.c:2

Перекрестные ссылки ActionData.