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

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
private

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

61 {
62 super.OnStartServer(action_data);
63
64 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
65 if (!vehCommand)
66 return;
67
68 CarScript car = CarScript.Cast(vehCommand.GetTransport());
69 if (!car)
70 return;
71
72 if (car.CheckOperationalState())
73 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(car.SetCarEngineSoundState, SOUND_IGNITION_DELAY, false, CarEngineSoundState.STARTING);
74
75 }
ActionStartCarCB SOUND_IGNITION_DELAY
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
Определения CivilianSedan.c:2
proto native Transport GetTransport()
Определения human.c:690
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
const int CALL_CATEGORY_GAMEPLAY
Определения tools.c:10

Перекрестные ссылки ActionData, CALL_CATEGORY_GAMEPLAY, ScriptCallQueue::CallLater(), CGame::GetCallQueue(), GetGame(), HumanCommandVehicle::GetTransport() и SOUND_IGNITION_DELAY.