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

◆ Start()

override void ActionGetInTransport::Start ( ActionData action_data)
inlineprivate

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

83 {
84 super.Start( action_data );
85
86 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
87 int componentIndex = action_data.m_Target.GetComponentIndex();
88 int crew_index = trans.CrewPositionIndex(componentIndex);
89
90 int seat = trans.GetSeatAnimationType(crew_index);
91 HumanCommandVehicle vehCommand = action_data.m_Player.StartCommand_Vehicle(trans, crew_index, seat);
92 if (vehCommand)
93 {
94 vehCommand.SetVehicleType(trans.GetAnimInstance());
95
96 GetDayZGame().GetBacklit().OnEnterCar();
97 }
98 }
DayZGame GetDayZGame()
Определения DayZGame.c:3870
proto native void SetVehicleType(int pVehicleType)

Перекрестные ссылки ActionData, GetDayZGame() и HumanCommandVehicle::SetVehicleType().