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

◆ OnFinishProgressServer()

override void ActionMixMortarAtWater::OnFinishProgressServer ( ActionData action_data)
inlineprotected

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

73 {
74 ItemBase mortarMixClosed = action_data.m_MainItem;
75 if (!mortarMixClosed)
76 return;
77
78 string resultType = "MortarMix_Opened";
79
80 // Try inventory first; fallback to ground at player pos
81 // This is the result of the crafting (an open Mortar Mix)
82 ItemBase mortarMixOpen = ItemBase.Cast(action_data.m_Player.GetInventory().CreateInInventory(resultType));
83
84 if (!mortarMixOpen)
85 {
86 mortarMixOpen = ItemBase.Cast(GetGame().CreateObject(resultType, action_data.m_Player.GetPosition()));
87 if (mortarMixOpen)
88 mortarMixOpen.PlaceOnSurface();
89 }
90
91 if (mortarMixOpen)
92 {
93 mortarMixOpen.SetHealth("", "", mortarMixClosed.GetHealth());
94 mortarMixClosed.Delete();
95 }
96 }
class GP5GasMask extends MaskBase ItemBase
PlayerBase m_Player
Определения ActionBase.c:40
ItemBase m_MainItem
Определения ActionBase.c:35
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки GetGame(), ActionData::m_MainItem и ActionData::m_Player.