Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIPrintDebug.c
Go to the documentation of this file.
1 // BT node for printing debug messsages
3 {
4  //------------------------------------------------------------------------------------------------
5  protected override void PrintInternal(string in)
6  {
7  Print(in);
8  }
9 
10  //------------------------------------------------------------------------------------------------
11  protected override bool VisibleInPalette()
12  {
13  return true;
14  }
15 
16  //------------------------------------------------------------------------------------------------
17  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
18  {
19 //switch defines when neede to debug on server
20 //#ifdef AI_DEBUG
21 #ifdef WORKBENCH
22  if (DiagMenu.GetBool(SCR_DebugMenuID.DEBUGUI_AI_PRINT_DEBUG))
23  {
24  return super.EOnTaskSimulate(owner, dt);
25  }
26 #endif
27  if (m_bFailAfter)
28  return ENodeResult.FAIL;
29  else
30  return ENodeResult.SUCCESS;
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  protected override string GetOnHoverDescription()
35  {
36  return "BT node for printing debug messsages. String can be in In port or as parameter";
37  }
38 };
SCR_AIPrintDebug
Definition: SCR_AIPrintDebug.c:2
SCR_AIDebugTask
Definition: SCR_AIDebugTask.c:2
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition: DebugMenuID.c:3