Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AISetBehaviorInterruptable.c
Go to the documentation of this file.
2 {
3  [Attribute("true", UIWidgets.CheckBox, "IsInterruptable")]
4  private bool m_IsInterruptable;
5 
6  //------------------------------------------------------------------------------------------------
7  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
8  {
10 
11  if (!action)
12  return ENodeResult.FAIL;
13 
14  action.SetActionInterruptable(m_IsInterruptable);
15  return ENodeResult.SUCCESS;
16  }
17 
18  //------------------------------------------------------------------------------------------------
19  protected override bool VisibleInPalette()
20  {
21  return true;
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  protected override string GetOnHoverDescription()
26  {
27  return "Sets behavior to be /not be interruptable by another behavior";
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  protected override string GetNodeMiddleText()
32  {
33  if (m_IsInterruptable)
34  return "INTERRUPTABLE";
35  else
36  return "NOT INTERRUPTABLE";
37  }
38 };
GetExecutedAction
proto external ref AIActionBase GetExecutedAction()
SCR_AIActionBase
Definition: SCR_AIAction.c:1
SCR_AISetBehaviorInterruptable
Definition: SCR_AISetBehaviorInterruptable.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_AIActionTask
Definition: SCR_AIBehaviorTask.c:1