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

◆ OnExecute()

override void ActionTakeArrowToHands::OnExecute ( ActionData action_data)
inlineprivate

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

110 {
111 if (GetGame().IsDedicatedServer())
112 {
113 ClearActionJuncture(action_data);
114 return;
115 }
116
117 InventoryLocation il = action_data.m_ReservedInventoryLocations.Get(0);
118
119 ItemBase arrow = ItemBase.Cast(il.GetItem());
120 ClearInventoryReservationEx(action_data);
121
122 float stackable = arrow.GetTargetQuantityMax(-1);
123
124 if (stackable == 0 || stackable >= arrow.GetQuantity())
125 {
126 action_data.m_Player.PredictiveTakeEntityToHands(arrow);
127 }
128 else
129 {
130 arrow.SplitIntoStackMaxToInventoryLocationClient(il);
131 }
132 }
class GP5GasMask extends MaskBase ItemBase
void ClearActionJuncture(ActionData action_data)
Определения ActionBase.c:1083
void ClearInventoryReservationEx(ActionData action_data)
Определения ActionBase.c:1025
proto native EntityAI GetItem()
returns item of current inventory location
proto native CGame GetGame()

Перекрестные ссылки ActionData, ActionBase::ClearActionJuncture(), ActionBase::ClearInventoryReservationEx(), GetGame() и InventoryLocation::GetItem().