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

◆ Process()

void ActionDetachPowerSourceFromPanel::Process ( ActionData action_data)
inlineprivate

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

39 {
40 EntityAI target_entity = EntityAI.Cast( action_data.m_Target.GetObject() );
41
42 EntityAI attachment;
43 int attachments_count = target_entity.GetInventory().AttachmentCount();
44 for ( int j = 0; j < attachments_count; j++ ) //find any attached power source
45 {
46 // @TODO: vezme prvni att?
47 attachment = target_entity.GetInventory().GetAttachmentFromIndex( j );
48 if ( attachment )
49 break;
50 }
51
52 if ( attachment )
53 {
54 action_data.m_Player.PredictiveTakeEntityToHands(attachment );
55 }
56 }
class LogManager EntityAI

Перекрестные ссылки ActionData.