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

◆ SetupAction()

override bool ActionDetachFromTarget::SetupAction ( PlayerBase player,
ActionTarget target,
ItemBase item,
out ActionData action_data,
Param extra_data = NULL )
inlineprivate

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

54 {
55 int attSlotId = InventorySlots.INVALID;
56 if (!GetGame().IsDedicatedServer() )
57 {
58 attSlotId = FindSlotIdToDetach(player, target, item);
59 }
60
61 if ( super.SetupAction( player, target, item, action_data, extra_data))
62 {
63 if (!GetGame().IsDedicatedServer())
64 {
65 if(attSlotId != InventorySlots.INVALID)
66 {
67 DetachActionData action_data_a = DetachActionData.Cast(action_data);
68 action_data_a.m_AttSlot = attSlotId;
69 return true;
70 }
71 return false;
72 }
73 return true;
74 }
75 return false;
76 }
int FindSlotIdToDetach(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionDetachFromTarget.c:26
int m_AttSlot
Определения ActionDetach.c:3
proto native CGame GetGame()

Перекрестные ссылки ActionData, ActionTarget, FindSlotIdToDetach(), GetGame(), InventorySlots::INVALID и DetachActionData::m_AttSlot.