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_AICompleteWaypoint.c
Go to the documentation of this file.
1
class
SCR_AICompleteWaypoint
:
AITaskScripted
2
{
3
protected
static
ref
TStringArray
s_aVarsIn
= {
4
"WaypointIn"
5
};
6
override
TStringArray
GetVariablesIn
()
7
{
8
return
s_aVarsIn
;
9
}
10
11
override
ENodeResult
EOnTaskSimulate
(AIAgent owner,
float
dt)
12
{
13
AIGroup group = AIGroup.Cast(owner);
14
if
(!group)
15
{
16
SCR_AgentMustBeAIGroup
(
this
, owner);
17
return
ENodeResult
.FAIL;
18
}
19
20
AIWaypoint wp;
21
GetVariableIn
(
"WaypointIn"
,wp);
22
if
( !wp )
23
wp = group.GetCurrentWaypoint();
24
if
( wp )
25
{
26
group.CompleteWaypoint(wp);
27
return
ENodeResult
.SUCCESS;
28
}
29
30
return
ENodeResult
.FAIL;
31
}
32
33
protected
static
override
bool
VisibleInPalette
()
34
{
35
return
true
;
36
}
37
38
protected
static
override
string
GetOnHoverDescription
()
39
{
40
return
"Completes current waypoint"
;
41
}
42
43
};
SCR_AgentMustBeAIGroup
void SCR_AgentMustBeAIGroup(Node node, AIAgent owner)
Definition
NodeError.c:14
AITaskScripted
Definition
AITaskScripted.c:13
Node::GetVariableIn
proto bool GetVariableIn(string name, out void val)
SCR_AICompleteWaypoint
Definition
SCR_AICompleteWaypoint.c:2
SCR_AICompleteWaypoint::EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition
SCR_AICompleteWaypoint.c:11
SCR_AICompleteWaypoint::GetVariablesIn
override TStringArray GetVariablesIn()
Definition
SCR_AICompleteWaypoint.c:6
SCR_AICompleteWaypoint::s_aVarsIn
static ref TStringArray s_aVarsIn
Definition
SCR_AICompleteWaypoint.c:3
SCR_AICompleteWaypoint::GetOnHoverDescription
static override string GetOnHoverDescription()
Definition
SCR_AICompleteWaypoint.c:38
SCR_AICompleteWaypoint::VisibleInPalette
static override bool VisibleInPalette()
Definition
SCR_AICompleteWaypoint.c:33
ENodeResult
ENodeResult
Definition
ENodeResult.c:13
TStringArray
array< string > TStringArray
Definition
Types.c:385
scripts
Game
AI
ScriptedNodes
Waypoints
SCR_AICompleteWaypoint.c
Generated by
1.17.0