Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AICallOnExecuteWaypointTree.c
Go to the documentation of this file.
1
class
SCR_AICallOnExecuteWaypointTree
: AITaskScripted
2
{
3
protected
SCR_AIGroupUtilityComponent m_Utility;
4
5
override
void
OnInit(AIAgent owner)
6
{
7
SCR_AIGroup
group =
SCR_AIGroup
.Cast(owner);
8
if
(!group)
9
{
10
SCR_AgentMustBeAIGroup
(
this
, owner);
11
return
;
12
}
13
m_Utility = SCR_AIGroupUtilityComponent.Cast(group.FindComponent(SCR_AIGroupUtilityComponent));
14
}
15
16
17
//------------------------------------------------------------------------------------------------
18
override
ENodeResult EOnTaskSimulate(AIAgent owner,
float
dt)
19
{
20
if
(!m_Utility)
21
NodeError
(
this
, owner,
"No utility component found!"
);
22
m_Utility.OnExecuteWaypointTree();
23
return
ENodeResult.SUCCESS;
24
}
25
26
//------------------------------------------------------------------------------------------------
27
protected
override
bool
VisibleInPalette()
28
{
29
return
true
;
30
}
31
32
//------------------------------------------------------------------------------------------------
33
protected
override
string
GetOnHoverDescription()
34
{
35
return
"Calls event OnExecuteWaypointTree of SCR_AIWaypointState of current waypoint"
;
36
}
37
};
SCR_AgentMustBeAIGroup
void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
Definition:
NodeError.c:14
NodeError
ENodeResult NodeError(Node node, AIAgent owner, string msg)
Error call to be used in scripted BT nodes.
Definition:
NodeError.c:3
SCR_AICallOnExecuteWaypointTree
Definition:
SCR_AICallOnExecuteWaypointTree.c:1
SCR_AIGroup
Definition:
SCR_AIGroup.c:68
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
AI
ScriptedNodes
Waypoints
SCR_AICallOnExecuteWaypointTree.c
Generated by
1.8.17