DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CAContinuousRepeatStartEngine.c
См. документацию.
2{
3 void CAContinuousRepeatStartEngine( float time_to_complete_action )
4 {
5 m_DefaultTimeToComplete = time_to_complete_action;
6 }
7
8 override int Execute( ActionData action_data )
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 }
45};
ActionBase ActionData
Определения ActionBase.c:30
void SetACData(Param units)
Определения CABase.c:40
void OnCompletePogress(ActionData action_data)
Определения CAContinuousBase.c:8
float m_TimeElpased
Определения CAContinuousRepeat.c:3
float m_DefaultTimeToComplete
Определения CAContinuousRepeat.c:6
float m_TotalTimeElpased
Определения CAContinuousRepeat.c:4
float m_TimeToComplete
Определения CAContinuousRepeat.c:5
ref Param1< float > m_SpentUnits
Определения CAContinuousRepeat.c:7
void CAContinuousRepeat(float time_to_complete_action)
Определения CAContinuousRepeat.c:9
void CAContinuousRepeatStartEngine(float time_to_complete_action)
Определения CAContinuousRepeatStartEngine.c:3
override int Execute(ActionData action_data)
Определения CAContinuousRepeatStartEngine.c:8
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.
const int UA_FINISHED
Определения constants.c:464
const int UA_ERROR
Определения constants.c:483
const int UA_PROCESSING
Определения constants.c:462