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

◆ OnFinishProgressServer()

override void ActionSplintTarget::OnFinishProgressServer ( ActionData action_data)
inlineprivate

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

27 {
28 PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
29 if (CanReceiveAction(action_data.m_Target))
30 {
31 action_data.m_MainItem.TransferModifiers(ntarget);
32 ntarget.ApplySplint();
33
34 ItemBase new_item = ItemBase.Cast(ntarget.GetInventory().CreateInInventory("Splint_Applied"));
35 if ( new_item )
36 {
37 MiscGameplayFunctions.TransferItemProperties(action_data.m_MainItem,new_item,true,false,true);
38 action_data.m_MainItem.Delete();
39 }
40
41 ntarget.SetBrokenLegs(eBrokenLegs.BROKEN_LEGS_SPLINT);
42 }
43 }
eBrokenLegs
Определения EBrokenLegs.c:2
class GP5GasMask extends MaskBase ItemBase
bool CanReceiveAction(ActionTarget target)
Определения ActionBase.c:793

Перекрестные ссылки ActionData и ActionBase::CanReceiveAction().