Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actioninteractloopbase.c
Go to the documentation of this file.
2{
3
4 bool CancelCondition()
5 {
6 if ( !m_ActionData )
7 {
8 return DefaultCancelCondition();
9 }
10 //SetCommand(DayZPlayerConstants.CMD_ACTIONINT_ACTIONLOOP);
11 //Print("cancel condition enabled: " + GetState().ToString() );
12 if ( !m_Interrupted && (GetState() == STATE_LOOP_LOOP || GetState() == STATE_LOOP_LOOP2) )
13 {
15 action.Do(m_ActionData,m_ActionData.m_State);
16 }
17 return DefaultCancelCondition();
18 }
19
20 override void CreateActionComponent()
21 {
22 m_ActionData.m_ActionComponent = new CAInteract;
23 }
24
25 override void InitActionComponent()
26 {
27 super.InitActionComponent();
28 EnableCancelCondition(true);
29 }
30
31};
32
ActionData m_ActionData
void Do(ActionData action_data, int state)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602