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

◆ OnUpdate()

override void ActionDeployBase::OnUpdate ( ActionData action_data)
inlineprotected

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

145 {
146 super.OnUpdate(action_data);
147
148 foreach (ItemBase item : m_MovedItems)
149 {
150 if (item == action_data.m_MainItem)
151 {
152 InventoryLocation loc = new InventoryLocation();
153 item.GetInventory().GetCurrentInventoryLocation(loc);
154 if (loc && loc.GetType() == InventoryLocationType.GROUND) // if main item is placed on ground during deploy, re-reserve it
155 InventoryReservation(action_data);
156 }
157 }
158
159 m_MovedItems.Clear();
160 }
class GP5GasMask extends MaskBase ItemBase
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
bool InventoryReservation(ActionData action_data)
Определения ActionBase.c:979
ref array< ItemBase > m_MovedItems
Определения ActionDeployBase.c:23
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки ActionData, InventoryLocation::GetType(), ActionBase::InventoryReservation() и m_MovedItems.