Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AISetCombatMoveRequestState.c
Go to the documentation of this file.
1 class SCR_AISetCombatMoveRequestState : AITaskScripted
2 {
3  protected static const string PORT_REQUEST = "Request";
4 
5  [Attribute("0", UIWidgets.ComboBox, "", enums: ParamEnumArray.FromEnum(SCR_EAICombatMoveRequestState))]
6  protected SCR_EAICombatMoveRequestState m_eState;
7 
8  //--------------------------------------------------------------------------------------------
9  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
10  {
12 
13  GetVariableIn(PORT_REQUEST, rq);
14  if (!rq)
15  return ENodeResult.FAIL;
16 
17  rq.m_eState = m_eState;
18 
19  return ENodeResult.SUCCESS;
20  }
21 
22  //--------------------------------------------------------------------------------------------
23  override bool VisibleInPalette() { return true; }
24 
25  override string GetNodeMiddleText()
26  {
27  return string.Format("State: %1", typename.EnumToString(SCR_EAICombatMoveRequestState, m_eState));
28  }
29 
30  protected static ref TStringArray s_aVarsIn = {
32  };
33  override TStringArray GetVariablesIn() { return s_aVarsIn; }
34 }
35 
36 class SCR_AISetCombatMoveRequestFailReason : AITaskScripted
37 {
38  protected static const string PORT_REQUEST = "Request";
39 
40  [Attribute("0", UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_EAICombatMoveRequestFailReason))]
41  protected SCR_EAICombatMoveRequestFailReason m_eFailReason;
42 
43  //--------------------------------------------------------------------------------------------
44  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
45  {
47 
48  GetVariableIn(PORT_REQUEST, rq);
49  if (!rq)
50  return ENodeResult.FAIL;
51 
52  rq.m_eFailReason = m_eFailReason;
53 
54  return ENodeResult.SUCCESS;
55  }
56 
57  //--------------------------------------------------------------------------------------------
58  override bool VisibleInPalette() { return true; }
59 
60  override string GetNodeMiddleText()
61  {
62  return string.Format("Fail Reason: %1", typename.EnumToString(SCR_EAICombatMoveRequestFailReason, m_eFailReason));
63  }
64 
65  protected static ref TStringArray s_aVarsIn = {
67  };
68  override TStringArray GetVariablesIn() { return s_aVarsIn; }
69 }
GetNodeMiddleText
override string GetNodeMiddleText()
Definition: SCR_AISetCombatMoveRequestState.c:60
SCR_AICombatMoveRequestBase
Definition: SCR_AICombatMoveRequest.c:37
m_eFailReason
protected SCR_EAICombatMoveRequestFailReason m_eFailReason
Definition: SCR_AISetCombatMoveRequestState.c:41
GetVariablesIn
override TStringArray GetVariablesIn()
Definition: SCR_AISetCombatMoveRequestState.c:68
PORT_REQUEST
SCR_AISetCombatMoveRequestState PORT_REQUEST
m_eState
EAITargetClusterState m_eState
Definition: SCR_AITargetClusterState.c:24
SCR_AISetCombatMoveRequestState
Definition: SCR_AISetCombatMoveRequestState.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition: SCR_AISetCombatMoveRequestState.c:44
SCR_EAICombatMoveRequestState
SCR_EAICombatMoveRequestState
Definition: SCR_AICombatMoveState.c:1
VisibleInPalette
override bool VisibleInPalette()
Definition: SCR_AISetCombatMoveRequestState.c:58