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_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
static
override
bool
VisibleInPalette
()
28
{
29
return
true
;
30
}
31
32
//------------------------------------------------------------------------------------------------
33
protected
static
override
string
GetOnHoverDescription
()
34
{
35
return
"Calls event OnExecuteWaypointTree of SCR_AIWaypointState of current waypoint"
;
36
}
37
};
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
AITaskScripted
Definition
AITaskScripted.c:13
SCR_AICallOnExecuteWaypointTree
Definition
SCR_AICallOnExecuteWaypointTree.c:2
SCR_AICallOnExecuteWaypointTree::EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition
SCR_AICallOnExecuteWaypointTree.c:18
SCR_AICallOnExecuteWaypointTree::m_Utility
SCR_AIGroupUtilityComponent m_Utility
Definition
SCR_AICallOnExecuteWaypointTree.c:3
SCR_AICallOnExecuteWaypointTree::VisibleInPalette
static override bool VisibleInPalette()
Definition
SCR_AICallOnExecuteWaypointTree.c:27
SCR_AICallOnExecuteWaypointTree::GetOnHoverDescription
static override string GetOnHoverDescription()
Definition
SCR_AICallOnExecuteWaypointTree.c:33
SCR_AICallOnExecuteWaypointTree::OnInit
override void OnInit(AIAgent owner)
Definition
SCR_AICallOnExecuteWaypointTree.c:5
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroupUtilityComponent
Definition
SCR_AIGroupUtilityComponent.c:18
ENodeResult
ENodeResult
Definition
ENodeResult.c:13
scripts
Game
AI
ScriptedNodes
Waypoints
SCR_AICallOnExecuteWaypointTree.c
Generated by
1.17.0