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

◆ AttachItem()

void AttachItem ( ActionData action_data)
protected

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

124 {
125 EntityAI targetEAI;
126 if (action_data.m_Target.IsProxy())
127 {
128 targetEAI = EntityAI.Cast(action_data.m_Target.GetParent());
129 }
130 else
131 {
132 targetEAI = EntityAI.Cast(action_data.m_Target.GetObject());
133 }
134
135 if (targetEAI && action_data.m_MainItem)
136 {
137 int slotId = InventorySlots.GetSlotIdFromString(action_data.m_MainItem.GetExplosiveTriggerSlotName());
138 action_data.m_Player.PredictiveTakeEntityToTargetAttachmentEx(targetEAI, action_data.m_MainItem, slotId);
139 }
140 }
Определения Building.c:6
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Определения InventorySlots.c:6

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

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