Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
NodeError.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 ENodeResult NodeError(Node node, AIAgent owner, string msg)
4 {
5  string sOwner = owner.ToString();
6  string nodeStack;
7  node.GetCallstackStr(nodeStack);
8  Debug.Error(sOwner + " : " + nodeStack + "\n" + msg);
9  return ENodeResult.FAIL;
10 };
11 
12 // used for BT nodes to ensure they runs on AIGroup
13 //------------------------------------------------------------------------------------------------
14 void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
15 {
16  NodeError(node,owner, node.Type().ToString() + " must be run on group AIAgent!");
17 };
18 
19 // used for BT nodes to ensure they runs on ChimeraAIAgent
20 //------------------------------------------------------------------------------------------------
21 ENodeResult SCR_AgentMustChimera(Node node, AIAgent owner)
22 {
23  string sOwner = owner.ToString();
24  string nodeStack;
25  node.GetCallstackStr(nodeStack);
26  Debug.Error(sOwner + " : " + nodeStack + "\n" + "must be run on ChimeraAIAgent!");
27  return ENodeResult.FAIL;
28 };
29 
31 {
32  static ENodeResult NodeErrorCombatMoveRequest(Node node, AIAgent owner, SCR_AICombatMoveRequestBase rq)
33  {
34  return NodeError(node, owner, string.Format("Combat Move Request is null or of wring type: %1", rq));
35  }
36 }
SCR_AgentMustBeAIGroup
void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
Definition: NodeError.c:14
SCR_AgentMustChimera
ENodeResult SCR_AgentMustChimera(Node node, AIAgent owner)
Definition: NodeError.c:21
SCR_AICombatMoveRequestBase
Definition: SCR_AICombatMoveRequest.c:37
NodeError
ENodeResult NodeError(Node node, AIAgent owner, string msg)
Error call to be used in scripted BT nodes.
Definition: NodeError.c:3
SCR_AIErrorMessages
Definition: NodeError.c:30