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

◆ AttachItem()

void AttachItem ( ActionData action_data)
protected

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

146 {
147 EntityAI targetEAI;
148 if (action_data.m_Target.IsProxy())
149 {
150 targetEAI = EntityAI.Cast(action_data.m_Target.GetParent());
151 }
152 else
153 {
154 targetEAI = EntityAI.Cast(action_data.m_Target.GetObject());
155 }
156
157 if (targetEAI && action_data.m_MainItem)
158 {
159 int slotId = InventorySlots.GetSlotIdFromString(action_data.m_MainItem.GetExplosiveTriggerSlotName());
160 action_data.m_Player.PredictiveTakeEntityToTargetAttachmentEx(targetEAI, action_data.m_MainItem, slotId);
161 }
162 }
PlayerBase m_Player
Определения ActionBase.c:40
ref ActionTarget m_Target
Определения ActionBase.c:39
ItemBase m_MainItem
Определения ActionBase.c:35
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Определения InventorySlots.c:6

Перекрестные ссылки InventorySlots::GetSlotIdFromString(), ActionData::m_MainItem, ActionData::m_Player и ActionData::m_Target.

Используется в OnExecuteClient(), OnExecuteServer(), OnFinishProgressClient() и OnFinishProgressServer().