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

◆ OnExecuteServer()

override void ActionSwitchLights::OnExecuteServer ( ActionData action_data)
inlineprivate

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

65 {
66 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
67 if ( vehCommand )
68 {
69 Transport trans = vehCommand.GetTransport();
70 if ( trans )
71 {
72 CarScript car;
73 if ( Class.CastTo(car, trans) )
74 {
75 car.ToggleHeadlights();
76 }
77 }
78 }
79 }
void CarScript()
Определения CarScript.c:280
proto native Transport GetTransport()

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