Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIGetWaypointParameters.c
Go to the documentation of this file.
1 class SCR_AIGetWaypointParameters : AITaskScripted
2 {
3  // Inputs
4  static const string PORT_WAYPOINT = "Waypoint";
5 
6  // Outputs
7  static const string PORT_POSITION = "Position";
8  static const string PORT_RADIUS = "Radius";
9 
10 
11  //------------------------------------------------------------------------------------------------
12  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
13  {
14  AIWaypoint wp = null;
15  GetVariableIn(PORT_WAYPOINT, wp);
16 
17  if (!wp)
18  {
19  ClearVariable(PORT_POSITION);
20  ClearVariable(PORT_RADIUS);
21  return ENodeResult.FAIL;
22  }
23 
24  SetVariableOut(PORT_POSITION, wp.GetOrigin());
25  SetVariableOut(PORT_RADIUS, wp.GetCompletionRadius());
26 
27  return ENodeResult.SUCCESS;
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  protected override bool VisibleInPalette() { return true; }
32 
33  protected static ref TStringArray s_aVarsIn = {
34  PORT_WAYPOINT
35  };
36  override TStringArray GetVariablesIn()
37  {
38  return s_aVarsIn;
39  }
40 
41  protected static ref TStringArray s_aVarsOut = {
42  PORT_POSITION,
43  PORT_RADIUS
44  };
45  override TStringArray GetVariablesOut()
46  {
47  return s_aVarsOut;
48  }
49 };
SCR_AIGetWaypointParameters
Definition: SCR_AIGetWaypointParameters.c:1
s_aVarsOut
SCR_AIPickupInventoryItemsBehavior s_aVarsOut
Definition: SCR_AIGetCombatMoveRequestParameters.c:149