Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIDecoCombatMove_Moving.c
Go to the documentation of this file.
1 class SCR_AIDecoCombatMove_Moving : DecoratorScripted
2 {
3  protected SCR_AICombatMoveState m_State;
4 
5  override bool TestFunction(AIAgent owner)
6  {
7  if (!m_State)
8  {
9  SCR_AIUtilityComponent utilityComp = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
10  if (utilityComp)
11  m_State = utilityComp.m_CombatMoveState;
12  if (!m_State)
13  return false;
14  }
15 
16  return m_State.IsMoving();
17  }
18 
19  override string GetOnHoverDescription() { return "Returns IsMoving condition from Combat Move State"; }
20  override bool VisibleInPalette() { return true; }
21 }
m_State
private EEditableEntityState m_State
Definition: SCR_BaseEntitiesEditorUIEffect.c:3
SCR_AIDecoCombatMove_Moving
Definition: SCR_AIDecoCombatMove_Moving.c:1