DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
OnEndClient()
override void ActionAttachPowerSourceToPanel::OnEndClient
(
ActionData
action_data
)
inline
protected
См. определение в файле
ActionAttachPowerSourceToPanel.c
строка
56
57
{
58
// Probably not needed since attaching is done server side.
59
/*
60
EntityAI target_entity = EntityAI.Cast( action_data.m_Target.GetObject() );
61
EntityAI item_entity = EntityAI.Cast( action_data.m_MainItem );
62
63
//find inventory location for attachment
64
InventoryLocation target_location = new InventoryLocation;
65
66
if( target_entity.GetInventory().FindFirstFreeLocationForNewEntity( item_entity.GetType(), FindInventoryLocationType.ATTACHMENT, target_location ) )
67
{
68
//target_entity.PredictiveTakeEntityToTargetAttachmentEx( target_entity, item_entity, target_location.GetSlot() );
69
target_entity.LocalTakeEntityAsAttachmentEx( item_entity, target_location.GetSlot() );
70
}
71
*/
72
}
Перекрестные ссылки
ActionData
.
ActionAttachPowerSourceToPanel
Создано системой
1.13.2