Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIUpdateExecutedAction.c
Go to the documentation of this file.
1// BT node for printing debug messsages
3{
4 private SCR_AIBaseUtilityComponent m_Utility;
5
6 protected static 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 static override string GetOnHoverDescription()
23 {
24 return "Update which activity is now being executed, so BT will always receive correct params";
25 }
26};
override void OnEnter(AIAgent owner)
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
static override string GetOnHoverDescription()
static override bool VisibleInPalette()
ENodeResult
Definition ENodeResult.c:13