Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDecoCombatMove_Moving.c
Go to the documentation of this file.
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 static override string GetOnHoverDescription() { return "Returns IsMoving condition from Combat Move State"; }
20 static override bool VisibleInPalette() { return true; }
21}
override bool TestFunction(AIAgent owner)
static override string GetOnHoverDescription()