Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AICompleteAction.c
Go to the documentation of this file.
1
class
SCR_AICompleteAction
:
SCR_AIActionTask
2
{
3
4
//------------------------------------------------------------------------------------------------
5
override
ENodeResult EOnTaskSimulate(AIAgent owner,
float
dt)
6
{
7
SCR_AIActionBase
action =
GetExecutedAction
();
8
9
if
(!action)
10
return
ENodeResult.FAIL;
11
12
action.Complete();
13
return
ENodeResult.SUCCESS;
14
}
15
16
//------------------------------------------------------------------------------------------------
17
protected
override
bool
VisibleInPalette()
18
{
19
return
true
;
20
}
21
22
//------------------------------------------------------------------------------------------------
23
protected
override
string
GetOnHoverDescription()
24
{
25
return
"Completes action specified in input or current action"
;
26
}
27
28
};
GetExecutedAction
proto external ref AIActionBase GetExecutedAction()
SCR_AIActionBase
Definition:
SCR_AIAction.c:1
SCR_AIActionTask
Definition:
SCR_AIBehaviorTask.c:1
SCR_AICompleteAction
Definition:
SCR_AICompleteAction.c:1
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
AI
ScriptedNodes
Behavior
SCR_AICompleteAction.c
Generated by
1.8.17