Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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 static 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 static override string GetOnHoverDescription()
35 {
36 return "BT node for printing debug messsages. String can be in In port or as parameter";
37 }
38};
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition DebugMenuID.c:4
Diagnostic and developer menu system.
Definition DiagMenu.c:18
override void PrintInternal(string in)
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
static override string GetOnHoverDescription()
static override bool VisibleInPalette()
ENodeResult
Definition ENodeResult.c:13
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.