Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AICallOnExecuteWaypointTree.c
Go to the documentation of this file.
2{
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 }
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};
ENodeResult NodeError(Node node, AIAgent owner, string msg)
Error call to be used in scripted BT nodes.
Definition NodeError.c:3
void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
Definition NodeError.c:14
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
ENodeResult
Definition ENodeResult.c:13