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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

60 {
61 Object target_object = action_data.m_Target.GetObject();
62 FireplaceBase fireplace_target = FireplaceBase.Cast( target_object );
63
64 if ( fireplace_target.CanBuildOven() )
65 {
66 ItemBase attached_item = ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
67
68 /*InventoryLocation inventory_location = new InventoryLocation;
69 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
70 fireplace_target.GetInventory().SetSlotLock( inventory_location.GetSlot(), true );*/
71
72 //set oven state
73 fireplace_target.SetOvenState( true );
74 fireplace_target.SetOrientation( action_data.m_Player.GetOrientation() - "180 0 0" );
75
76 // extend lifetime
77 fireplace_target.SetLifetimeMax( FireplaceBase.LIFETIME_FIREPLACE_STONE_OVEN );
78 }
79 }
Определения InventoryItem.c:731
Определения ObjectTyped.c:2

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