Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIResetCombatMoveState.c
Go to the documentation of this file.
1 class SCR_AIResetCombatMoveState : AITaskScripted
2 {
3  protected SCR_AICombatMoveState m_State;
4 
5  //--------------------------------------------------------------------------------------------
6  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
7  {
8  if (!m_State)
9  {
10  SCR_AIUtilityComponent utilityComp = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
11  if (utilityComp)
12  m_State = utilityComp.m_CombatMoveState;
13  }
14 
15  if (!m_State)
16  return ENodeResult.FAIL;
17 
18  m_State.m_fTimerRequest_s = 0;
19  m_State.m_fTimerInCover_s = 0;
20  m_State.m_fTimerStopped_s = 0;
21 
22  m_State.CancelRequest();
23 
24  return ENodeResult.RUNNING;
25  }
26 
27  //--------------------------------------------------------------------------------------------
28  override bool VisibleInPalette() { return true; }
29 
30  //--------------------------------------------------------------------------------------------
31  override bool CanReturnRunning() { return true; }
32 }
SCR_AIResetCombatMoveState
Definition: SCR_AIResetCombatMoveState.c:1
m_State
private EEditableEntityState m_State
Definition: SCR_BaseEntitiesEditorUIEffect.c:3