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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
private

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

78 {
79 super.OnEndServer(action_data);
80
81 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
82 if (!vehCommand)
83 return;
84
85 Transport trans = vehCommand.GetTransport();
86 if (!trans)
87 return;
88
89 CarScript car;
90 if (Class.CastTo(car, trans))
91 car.SetCarEngineSoundState(CarEngineSoundState.NONE);
92 }
Определения CivilianSedan.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
proto native Transport GetTransport()
Определения human.c:690
Base native class for all motorized wheeled vehicles.
Определения Boat.c:28
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки ActionData, Class::CastTo() и HumanCommandVehicle::GetTransport().