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

◆ OnUpdate()

override void ActionDeployBase::OnUpdate ( ActionData action_data)
inlineprotected

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

124 {
125 super.OnUpdate(action_data);
126
127 foreach (ItemBase item : m_MovedItems)
128 {
129 if (item == action_data.m_MainItem)
130 {
131 InventoryLocation loc = new InventoryLocation();
132 item.GetInventory().GetCurrentInventoryLocation(loc);
133 if (loc && loc.GetType() == InventoryLocationType.GROUND) // if main item is placed on ground during deploy, re-reserve it
134 InventoryReservation(action_data);
135 }
136 }
137
138 m_MovedItems.Clear();
139 }
class GP5GasMask extends MaskBase ItemBase
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
bool InventoryReservation(ActionData action_data)
Определения ActionBase.c:967
ref array< ItemBase > m_MovedItems
Определения ActionDeployBase.c:23
proto native int GetType()
returns type of InventoryLocation

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