Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AISuspendAction.c
Go to the documentation of this file.
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.SetActionIsSuspended(true);
13 return ENodeResult.SUCCESS;
14 }
15
16 //------------------------------------------------------------------------------------------------
17 protected static override bool VisibleInPalette()
18 {
19 return true;
20 }
21
22 //------------------------------------------------------------------------------------------------
23 protected static override string GetOnHoverDescription()
24 {
25 return "Suspends the action, calls SetSuspended(true).";
26 }
27};
SCR_AIActionBase GetExecutedAction()
Returns current action from the utility component.
static override bool VisibleInPalette()
static override string GetOnHoverDescription()
ENodeResult
Definition ENodeResult.c:13