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

◆ AddActionJuncture()

override bool ActionPickUpMotorbike::AddActionJuncture ( ActionData action_data)
inlineprivate

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

84 {
85 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
86 bool accepted = false;
87 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
88 Transport transport = Transport.Cast(action_data.m_Target.GetObject());
89 InventoryLocation il = new InventoryLocation;
90 if (transport)
91 {
92 il.SetVehicle(transport, action_data.m_Player, nextSeat);
93
94 //Lock target
95 if (GetGame().AddInventoryJunctureEx(action_data.m_Player, action_data.m_Player, il, true, 10000))
96 {
97 accepted = true;
98 action_data.m_ReservedInventoryLocations.Insert(il);
99 }
100 }
101
102 return accepted;
103 }
PlayerBase m_Player
Определения ActionBase.c:40
ref ActionTarget m_Target
Определения ActionBase.c:39
ref array< ref InventoryLocation > m_ReservedInventoryLocations
Определения ActionBase.c:42
proto native void SetVehicle(notnull EntityAI parent, EntityAI e, int idx)
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки GetGame(), ActionData::m_Player, ActionData::m_ReservedInventoryLocations, ActionData::m_Target и InventoryLocation::SetVehicle().