Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIGetActionPriorityLevel.c
Go to the documentation of this file.
2{
3 protected static const string PORT_PRIORITY_LEVEL = "PriorityLevel";
4
5 //------------------------------------------------------------------------------------------------
6 override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
7 {
8 SCR_AIActionBase action = GetExecutedAction();
9
10 if (!action)
11 return ENodeResult.FAIL;
12
13 float priorityLevel = action.EvaluatePriorityLevel();
14
15 SetVariableOut(PORT_PRIORITY_LEVEL, priorityLevel);
16
17 return ENodeResult.SUCCESS;
18 }
19
20 //------------------------------------------------------------------------------------------------
21 protected static override bool VisibleInPalette() { return true; }
22
23 protected static ref TStringArray s_aVarsOut = { PORT_PRIORITY_LEVEL };
25};
proto void SetVariableOut(string name, void val)
SCR_AIActionBase GetExecutedAction()
Returns current action from the utility component.
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
ENodeResult
Definition ENodeResult.c:13
array< string > TStringArray
Definition Types.c:385