4 [
Attribute(
"0", UIWidgets.CheckBox,
"Message prefixed with ref to self")]
5 private bool m_bIncludeMe;
7 [
Attribute(
"", UIWidgets.EditBox,
"Message to show")]
8 private string m_sDebugMessage;
10 [
Attribute(
"0", UIWidgets.CheckBox,
"Fail node after print?")]
11 protected bool m_bFailAfter;
13 static const string PORT_DEBUG_MESSAGE =
"DebugMessage";
16 protected static ref TStringArray s_aVarsIn = {
19 override TStringArray GetVariablesIn()
26 protected void PrintInternal(
string in)
31 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
38 prefix = owner.ToString() +
": ";
39 PrintInternal(prefix + m_sDebugMessage + SCR_AIGetStringFromPort(
this, PORT_DEBUG_MESSAGE));
42 return ENodeResult.FAIL;
44 return ENodeResult.SUCCESS;
48 override bool VisibleInPalette()
54 override string GetNodeMiddleText()