3 protected static const string PORT_RESET =
"Reset";
5 protected SCR_AICombatMoveState m_State;
8 override void OnInit(AIAgent owner)
10 SCR_AIUtilityComponent utilityComp = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
12 m_State = utilityComp.m_CombatMoveState;
16 override void OnAbort(AIAgent owner, Node nodeCausingAbort)
23 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
26 return ENodeResult.FAIL;
29 GetVariableIn(PORT_RESET, reset);
34 m_State.m_fTimerRequest_s += dt;
37 m_State.m_fTimerInCover_s += dt;
44 m_State.m_fTimerStopped_s += dt;
47 return ENodeResult.SUCCESS;
51 override bool VisibleInPalette() {
return true; }
53 protected ref TStringArray s_aVarsIn = { PORT_RESET };
54 override TStringArray GetVariablesIn()