Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIGetActionParameters.c
Go to the documentation of this file.
1 
23 {
24  //------------------------------------------------------------------------------------------------
25  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
26  {
28 
29  if (!action)
30  return ENodeResult.FAIL;
31 
32  action.SetParametersToBTVariables(this);
33 
34  return ENodeResult.SUCCESS;
35  }
36 
37  //------------------------------------------------------------------------------------------------
38  protected override bool VisibleInPalette() { return false; }
39 };
40 
41 
42 
43 //------------------------------------------------------------------------------------------------
45 {
46  static ref TStringArray s_aVarsOut = (new SCR_AIGetInVehicle(null, null, null)).GetPortNames();
47  override TStringArray GetVariablesOut() { return s_aVarsOut; }
48 
49  protected override bool VisibleInPalette() { return true; }
50 };
51 
53 {
54  static ref TStringArray s_aVarsOut = (new SCR_AIGetOutVehicle(null, null, null)).GetPortNames();
55  override TStringArray GetVariablesOut() { return s_aVarsOut; }
56 
57  protected override bool VisibleInPalette() { return true; }
58 };
59 
61 {
62  static ref TStringArray s_aVarsOut = (new SCR_AIGetInActivity(null, null, null)).GetPortNames();
63  override TStringArray GetVariablesOut()
64  {
65  return s_aVarsOut;
66  }
67 
68  protected override bool VisibleInPalette() { return true; }
69 };
70 
72 {
73  static ref TStringArray s_aVarsOut = (new SCR_AIGetOutActivity(null, null, null)).GetPortNames();
74  override TStringArray GetVariablesOut() { return s_aVarsOut; }
75 
76  protected override bool VisibleInPalette() { return true; }
77 };
78 
80 {
81  static ref TStringArray s_aVarsOut = (new SCR_AIMoveActivity(null, null, vector.Zero, null)).GetPortNames();
82  override TStringArray GetVariablesOut() { return s_aVarsOut; }
83 
84  override bool VisibleInPalette() { return true; }
85 };
86 
87 
89 {
90  static ref TStringArray s_aVarsOut = (new SCR_AIFollowActivity(null, null, vector.Zero, null)).GetPortNames();
91  override TStringArray GetVariablesOut() { return s_aVarsOut; }
92 
93  override bool VisibleInPalette() { return true; }
94 };
95 
97 {
98  static ref TStringArray s_aVarsOut = (new SCR_AIDefendActivity(null, null, null, vector.Zero)).GetPortNames();
99  override TStringArray GetVariablesOut() { return s_aVarsOut; }
100 
101  override bool VisibleInPalette() { return true; }
102 };
103 
105 {
106  static ref TStringArray s_aVarsOut = (new SCR_AIDefendBehavior(null, null, null, vector.Zero, 0)).GetPortNames();
107  override TStringArray GetVariablesOut() { return s_aVarsOut; }
108 
109  override bool VisibleInPalette() { return true; }
110 };
111 
113 {
114  static ref TStringArray s_aVarsOut = (new SCR_AIAttackBehavior(null, null, null, null)).GetPortNames();
115  override TStringArray GetVariablesOut() { return s_aVarsOut; }
116 
117  override bool VisibleInPalette() { return true; }
118 };
119 
121 {
122  static ref TStringArray s_aVarsOut = (new SCR_AIPerformActionBehavior(null, null, null)).GetPortNames();
123  override TStringArray GetVariablesOut() { return s_aVarsOut; }
124 
125  override bool VisibleInPalette() { return true; }
126 };
127 
129 {
130  static ref TStringArray s_aVarsOut = (new SCR_AIPerformActionActivity(null, null, null, string.Empty)).GetPortNames();
131  override TStringArray GetVariablesOut() { return s_aVarsOut; }
132 
133  override bool VisibleInPalette() { return true; }
134 };
135 
137 {
138  static ref TStringArray s_aVarsOut = (SCR_AIResupplyActivity(null, null, null, Class)).GetPortNames();
139  override TStringArray GetVariablesOut() { return s_aVarsOut; }
140 
141  override bool VisibleInPalette() { return true; }
142 };
143 
145 {
146  static ref TStringArray s_aVarsOut = (new SCR_AIMoveAndInvestigateBehavior(null, null, vector.Zero)).GetPortNames();
147  override TStringArray GetVariablesOut() { return s_aVarsOut; }
148 
149  override bool VisibleInPalette() { return true; }
150 };
151 
153 {
154  static ref TStringArray s_aVarsOut = (new SCR_AIHealWaitBehavior(null, null, null)).GetPortNames();
155  override TStringArray GetVariablesOut() { return s_aVarsOut; }
156 
157  override bool VisibleInPalette() { return true; }
158 };
159 
161 {
162  static ref TStringArray s_aVarsOut = (new SCR_AIMedicHealBehavior(null, null, null, false)).GetPortNames();
163  override TStringArray GetVariablesOut() { return s_aVarsOut; }
164 
165  override bool VisibleInPalette() { return true; }
166 };
167 
169 {
170  static ref TStringArray s_aVarsOut = (new SCR_AIMoveFromDangerBehavior(null, null, vector.Zero, null)).GetPortNames();
171  override TStringArray GetVariablesOut() { return s_aVarsOut; }
172 
173  override bool VisibleInPalette() { return true; }
174 };
175 
177 {
178  static ref TStringArray s_aVarsOut = (new SCR_AIMoveIndividuallyBehavior(null, null, vector.Zero)).GetPortNames();
179  override TStringArray GetVariablesOut() { return s_aVarsOut; }
180 
181  override bool VisibleInPalette() { return true; }
182 
183  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
184  {
186 
187  if (!action)
188  return ENodeResult.FAIL;
189 
190  SCR_AIMoveIndividuallyBehavior moveIndBehavior = SCR_AIMoveIndividuallyBehavior.Cast(action);
191 
192  if (moveIndBehavior)
193  {
194  SCR_BTParamAssignable<IEntity> paramEntity = moveIndBehavior.m_Entity;
195  paramEntity.m_AssignedOut = paramEntity.m_Value != null;
196  }
197 
198  action.SetParametersToBTVariables(this);
199  return ENodeResult.SUCCESS;
200  }
201 };
202 
204 {
205  static ref TStringArray s_aVarsOut = (new SCR_AIRetreatWhileLookAtBehavior(null, null)).GetPortNames();
206  override TStringArray GetVariablesOut() { return s_aVarsOut; }
207 
208  override bool VisibleInPalette() { return true; }
209 };
211 {
212  static ref TStringArray s_aVarsOut = (new SCR_AIThrowGrenadeToBehavior(null, null, vector.Zero, EWeaponType.WT_NONE, 0)).GetPortNames();
213 
214  override TStringArray GetVariablesOut() { return s_aVarsOut; }
215  override bool VisibleInPalette() { return true; }
216 };
SCR_AIGetPerformActionBehaviorParameters
Definition: SCR_AIGetActionParameters.c:120
SCR_AIFollowActivity
Definition: SCR_AIMoveActivity.c:84
SCR_AIDefendActivity
Definition: SCR_AIDefendActivity.c:1
SCR_AIGetPerformActionActivityParameters
Definition: SCR_AIGetActionParameters.c:128
SCR_AIGetGetOutActivityParameters
Definition: SCR_AIGetActionParameters.c:71
GetExecutedAction
proto external ref AIActionBase GetExecutedAction()
SCR_AIGetAttackBehaviorParameters
Definition: SCR_AIGetActionParameters.c:112
SCR_AIActionBase
Definition: SCR_AIAction.c:1
SCR_AIGetGetInVehicleBehaviorParameters
Definition: SCR_AIGetActionParameters.c:44
SCR_AIDefendBehavior
Definition: SCR_AIDefendBehavior.c:1
SCR_AIThrowGrenadeToBehavior
Definition: SCR_AIThrowGrenadeToBehavior.c:1
SCR_AIGetDefendActivityParameters
Definition: SCR_AIGetActionParameters.c:96
SCR_AIGetMoveFromDangerBehaviorParameters
Definition: SCR_AIGetActionParameters.c:168
s_aVarsOut
SCR_AIPickupInventoryItemsBehavior s_aVarsOut
Definition: SCR_AIGetCombatMoveRequestParameters.c:149
SCR_AIGetHealWaitBehaviorParameters
Definition: SCR_AIGetActionParameters.c:152
SCR_AIGetGetInActivityParameters
Definition: SCR_AIGetActionParameters.c:60
SCR_AIGetMedicHealBehaviorParameters
Definition: SCR_AIGetActionParameters.c:160
SCR_AIGetResupplyActivityParameters
Definition: SCR_AIGetActionParameters.c:136
SCR_AIResupplyActivity
Definition: SCR_AIResupplyActivity.c:1
SCR_AIGetOutVehicle
Definition: SCR_AIVehicleBehavior.c:118
SCR_AIAttackBehavior
Definition: SCR_AIAttackBehavior.c:1
SCR_AIMoveActivity
Definition: SCR_AIMoveActivity.c:1
SCR_AIGetDefendBehaviorParameters
Definition: SCR_AIGetActionParameters.c:104
SCR_AIPerformActionActivity
Definition: SCR_AIPerformActionActivity.c:1
SCR_AIMoveIndividuallyBehavior
Definition: SCR_AIMoveBehavior.c:30
SCR_AIGetMoveIndividuallyBehaviorParameters
Definition: SCR_AIGetActionParameters.c:176
SCR_AIGetInActivity
Definition: SCR_AIGetInActivity.c:1
SCR_AIGetFollowActivityParameters
Definition: SCR_AIGetActionParameters.c:88
SCR_AIMoveFromDangerBehavior
Definition: SCR_AIMoveFromDanger.c:4
SCR_AIGetActionParameters
Definition: SCR_AIGetActionParameters.c:22
SCR_AIGetThrowGrenadeToBehaviorParameters
Definition: SCR_AIGetActionParameters.c:210
SCR_AIGetOutActivity
Definition: SCR_AIGetOutActivity.c:1
EWeaponType
EWeaponType
Definition: EWeaponType.c:12
SCR_AIMedicHealBehavior
Definition: SCR_AIMedicHealBehavior.c:3
SCR_AIGetInvestigateBehaviorParameters
Definition: SCR_AIGetActionParameters.c:144
SCR_AIGetOutVehicleBehaviorParameters
Definition: SCR_AIGetActionParameters.c:52
SCR_AIRetreatWhileLookAtBehavior
Definition: SCR_AIRetreatBehavior.c:1
SCR_AIActionTask
Definition: SCR_AIBehaviorTask.c:1
SCR_AIGetInVehicle
Definition: SCR_AIVehicleBehavior.c:37
SCR_AIGetMoveActivityParameters
Definition: SCR_AIGetActionParameters.c:79
SCR_AIPerformActionBehavior
Definition: SCR_AIPerformActionBehavior.c:1
SCR_AIGetRetreatWhileLookAtBehaviorParameters
Definition: SCR_AIGetActionParameters.c:203
SCR_AIMoveAndInvestigateBehavior
Definition: SCR_AIMoveBehavior.c:53
SCR_AIHealWaitBehavior
Definition: SCR_AIHealWaitBehavior.c:5