Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_AIPrintDebug.c
Go to the documentation of this file.
1
// BT node for printing debug messsages
2
class
SCR_AIPrintDebug
:
SCR_AIDebugTask
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
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition
DebugMenuID.c:4
DiagMenu
Diagnostic and developer menu system.
Definition
DiagMenu.c:18
SCR_AIDebugTask
Definition
SCR_AIDebugTask.c:3
SCR_AIDebugTask::m_bFailAfter
bool m_bFailAfter
Definition
SCR_AIDebugTask.c:11
SCR_AIPrintDebug
Definition
SCR_AIPrintDebug.c:3
SCR_AIPrintDebug::PrintInternal
override void PrintInternal(string in)
Definition
SCR_AIPrintDebug.c:5
SCR_AIPrintDebug::EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition
SCR_AIPrintDebug.c:17
SCR_AIPrintDebug::GetOnHoverDescription
static override string GetOnHoverDescription()
Definition
SCR_AIPrintDebug.c:34
SCR_AIPrintDebug::VisibleInPalette
static override bool VisibleInPalette()
Definition
SCR_AIPrintDebug.c:11
ENodeResult
ENodeResult
Definition
ENodeResult.c:13
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
scripts
Game
AI
ScriptedNodes
Debug
SCR_AIPrintDebug.c
Generated by
1.17.0