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

◆ OnEndClient()

override void ActionAttachPowerSourceToPanel::OnEndClient ( ActionData action_data)
inlineprotected

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

62 {
63 // Probably not needed since attaching is done server side.
64 /*
65 EntityAI target_entity = EntityAI.Cast( action_data.m_Target.GetObject() );
66 EntityAI item_entity = EntityAI.Cast( action_data.m_MainItem );
67
68 //find inventory location for attachment
69 InventoryLocation target_location = new InventoryLocation;
70
71 if( target_entity.GetInventory().FindFirstFreeLocationForNewEntity( item_entity.GetType(), FindInventoryLocationType.ATTACHMENT, target_location ) )
72 {
73 //target_entity.PredictiveTakeEntityToTargetAttachmentEx( target_entity, item_entity, target_location.GetSlot() );
74 target_entity.LocalTakeEntityAsAttachmentEx( item_entity, target_location.GetSlot() );
75 }
76 */
77 }