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

◆ AddActionJuncture()

override bool ActionGetInTransport::AddActionJuncture ( ActionData action_data)
inlineprivate

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

139 {
140 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
141 bool accepted = false;
142 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
143 Transport transport = Transport.Cast(action_data.m_Target.GetObject());
144 InventoryLocation il = new InventoryLocation;
145 if (transport)
146 {
147 il.SetVehicle(transport, action_data.m_Player, nextSeat);
148
149 //Lock target
150 if (g_Game.AddInventoryJunctureEx(action_data.m_Player, action_data.m_Player, il, true, 10000, action_data))
151 {
152 accepted = true;
153 action_data.m_ReservedInventoryLocations.Insert(il);
154 }
155 }
156
157 return accepted;
158 }
DayZGame g_Game
Определения DayZGame.c:4074
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)

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