DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousRepeatFishing.c
Go to the documentation of this file.
2{
7
9 {
10 //Print("CAContinuousRepeatFishing | Execute");
11 if (!action_data.m_Player)
12 {
13 //Print("CAContinuousRepeatFishing | UA_ERROR");
14 return UA_ERROR;
15 }
16
18 {
19 m_TimeElpased += action_data.m_Player.GetDeltaT();
20 m_TotalTimeElpased += action_data.m_Player.GetDeltaT();
21 //Print("CAContinuousRepeatFishing | Execute | m_TimeElpased: " + m_TimeElpased);
22 return UA_PROCESSING;
23 }
24 else
25 {
30
32 if (fad && fad.m_FishingResult != -1)
33 {
34 //Print("CAContinuousRepeatFishing | UA_FINISHED");
35 return UA_FINISHED;
36 }
37 else
38 {
39 //Print("CAContinuousRepeatFishing | UA_PROCESSING");
40 return UA_PROCESSING;
41 }
42 }
43 }
44};
void SetACData(Param units)
Definition CABase.c:38
void OnCompletePogress(ActionData action_data)
override int Execute(ActionData action_data)
void CAContinuousRepeatFishing(float time_to_complete_action)
ref Param1< float > m_SpentUnits
const int UA_FINISHED
Definition constants.c:436
const int UA_ERROR
Definition constants.c:455
const int UA_PROCESSING
Definition constants.c:434