Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIUpdateExecutedAction.c
Go to the documentation of this file.
1 // BT node for printing debug messsages
2 class SCR_AIUpdateExecutedAction : AITaskScripted
3 {
4  private SCR_AIBaseUtilityComponent m_Utility;
5 
6  protected override bool VisibleInPalette() {return true;}
7 
8  protected override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
9  {
10  if (!m_Utility)
11  return ENodeResult.FAIL;
12 
13  m_Utility.SetExecutedAction(m_Utility.GetCurrentAction());
14  return ENodeResult.SUCCESS;
15  }
16 
17  override void OnEnter(AIAgent owner)
18  {
19  m_Utility = SCR_AIBaseUtilityComponent.Cast(owner.FindComponent(SCR_AIBaseUtilityComponent));
20  }
21 
22  protected override string GetOnHoverDescription()
23  {
24  return "Update which activity is now being executed, so BT will always receive correct params";
25  }
26 };
SCR_AIUpdateExecutedAction
Definition: SCR_AIUpdateExecutedAction.c:2