Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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(msg +
"\n\n"
+ sOwner +
" : "
+ nodeStack);
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
30
class
SCR_AIErrorMessages
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
37
static
ENodeResult
NodeErrorDefendPreset(
Node
node, AIAgent owner)
38
{
39
return
NodeError
(node, owner,
string
.Format(
"A Defend waypoint doesn't have a correctly set up Defend Preset!"
));
40
}
41
}
SCR_AgentMustChimera
ENodeResult SCR_AgentMustChimera(Node node, AIAgent owner)
Definition
NodeError.c:21
NodeError
ENodeResult NodeError(Node node, AIAgent owner, string msg)
Error call to be used in scripted BT nodes.
Definition
NodeError.c:3
SCR_AgentMustBeAIGroup
void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
Definition
NodeError.c:14
Debug
Definition
Debug.c:13
Node
Definition
Node.c:13
Node::GetCallstackStr
proto void GetCallstackStr(out string val)
SCR_AICombatMoveRequestBase
Definition
SCR_AICombatMoveRequest.c:46
SCR_AIErrorMessages
Definition
NodeError.c:31
ENodeResult
ENodeResult
Definition
ENodeResult.c:13
scripts
Game
AI
Utils
NodeError.c
Generated by
1.17.0