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

◆ OnStart()

override void ActionGetOutTransport::OnStart ( ActionData action_data)
inlineprotected

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

162 {
163 super.OnStart(action_data);
164
165 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
166 if (vehCommand)
167 {
168 Transport trans = vehCommand.GetTransport();
169 if (trans)
170 {
171 GetOutTransportActionData gotActionData = GetOutTransportActionData.Cast(action_data);
172 ProcessGetOutTransportActionData(trans, gotActionData);
173
174 if (!gotActionData.m_WasJumpingOutAnim)
175 vehCommand.GetOutVehicle();
176 else
177 vehCommand.JumpOutVehicle();
178
179 if (Car.Cast(trans))
180 GetDayZGame().GetBacklit().OnLeaveCar();
181
182 if (action_data.m_Player.GetInventory())
183 action_data.m_Player.GetInventory().LockInventory(LOCK_FROM_SCRIPT);
184 }
185 }
186 }
DayZGame GetDayZGame()
Определения DayZGame.c:3870
void ProcessGetOutTransportActionData(Transport veh, GetOutTransportActionData got_action_data)
Определения ActionGetOutTransport.c:136
proto native Transport GetTransport()
proto native void GetOutVehicle()
proto native void JumpOutVehicle()

Перекрестные ссылки ActionData, GetDayZGame(), HumanCommandVehicle::GetOutVehicle(), HumanCommandVehicle::GetTransport(), HumanCommandVehicle::JumpOutVehicle(), GetOutTransportActionData::m_WasJumpingOutAnim и ProcessGetOutTransportActionData().