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

◆ Execute()

override int CAContinuousRepeatStartEngine::Execute ( ActionData action_data)
inlineprivate

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

9 {
10 if ( !action_data.m_Player )
11 {
12 return UA_ERROR;
13 }
14
15 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
16 if( vehCommand )
17 {
18 Transport trans = vehCommand.GetTransport();
19
20 if ( trans )
21 {
22 Car car;
23 if ( Class.CastTo(car, trans) && car.EngineIsOn() )
24 {
25 return UA_FINISHED;
26 }
27 }
28 }
29
31 {
32 m_TimeElpased += action_data.m_Player.GetDeltaT();
33 m_TotalTimeElpased += action_data.m_Player.GetDeltaT();
34 return UA_PROCESSING;
35 }
36 else
37 {
40 m_TimeElpased = 0;
41 OnCompletePogress(action_data);
42 return UA_PROCESSING;
43 }
44 }
void SetACData(Param units)
Определения CABase.c:40
void OnCompletePogress(ActionData action_data)
Определения CAContinuousBase.c:8
float m_TimeElpased
Определения CAContinuousRepeat.c:3
float m_TotalTimeElpased
Определения CAContinuousRepeat.c:4
float m_TimeToComplete
Определения CAContinuousRepeat.c:5
ref Param1< float > m_SpentUnits
Определения CAContinuousRepeat.c:7
proto native Transport GetTransport()
const int UA_FINISHED
Определения constants.c:464
const int UA_ERROR
Определения constants.c:483
const int UA_PROCESSING
Определения constants.c:462

Перекрестные ссылки ActionData, Class::CastTo(), HumanCommandVehicle::GetTransport(), CAContinuousRepeat::m_SpentUnits, CAContinuousRepeat::m_TimeElpased, CAContinuousRepeat::m_TimeToComplete, CAContinuousRepeat::m_TotalTimeElpased, CAContinuousBase::OnCompletePogress(), CABase::SetACData(), UA_ERROR, UA_FINISHED и UA_PROCESSING.