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

◆ AddActionJuncture()

override bool ActionAnimateSeats::AddActionJuncture ( ActionData action_data)
inlineprivate

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

73 {
74 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
75 bool accepted = false;
76 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
77 Transport transport = Transport.Cast(action_data.m_Target.GetObject());
78 InventoryLocation il = new InventoryLocation;
79 if (transport)
80 {
81 il.SetVehicle(transport, action_data.m_Player, nextSeat);
82
83 //Lock target
84 if (g_Game.AddInventoryJunctureEx(action_data.m_Player, action_data.m_Player, il, true, 10000, action_data))
85 {
86 accepted = true;
87 action_data.m_ReservedInventoryLocations.Insert(il);
88 }
89 }
90
91 return accepted;
92 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native void SetVehicle(notnull EntityAI parent, EntityAI e, int idx)

Перекрестные ссылки ActionData, g_Game и InventoryLocation::SetVehicle().