Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIGetLookParameters.c
Go to the documentation of this file.
1 class SCR_AIGetLookParameters : AITaskScripted
2 {
3  static const string PORT_LOOK = "bLook";
4  static const string PORT_CANCEL = "bCancel";
5  static const string PORT_RESTART = "bRestart";
6  static const string PORT_POSITION = "vPosition";
7  static const string PORT_DURATION = "vDuration";
8 
9  SCR_AILookAction m_LookAction;
10 
11  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
12  {
13  if (!m_LookAction)
14  return ENodeResult.FAIL;
15 
16  return m_LookAction.GetLookParametersToNode(this);
17  }
18 
19  protected override bool VisibleInPalette() {return true;}
20  protected override string GetOnHoverDescription() {return "Gets parameters of a lookAction";}
21 
22  override void OnInit(AIAgent owner)
23  {
24  SCR_AIUtilityComponent utility = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
25  if (utility)
26  m_LookAction = utility.m_LookAction;
27  }
28 
29  protected static ref TStringArray s_aVarsOut = {
30  PORT_LOOK,
31  PORT_CANCEL,
32  PORT_RESTART,
33  PORT_POSITION,
34  PORT_DURATION
35  };
36  override TStringArray GetVariablesOut()
37  {
38  return s_aVarsOut;
39  }
40 };
SCR_AILookAction
Definition: SCR_AILookAction.c:1
s_aVarsOut
SCR_AIPickupInventoryItemsBehavior s_aVarsOut
Definition: SCR_AIGetCombatMoveRequestParameters.c:149
m_LookAction
ref SCR_AILookAction m_LookAction
Definition: SCR_AIUtilityComponent.c:17
SCR_AIGetLookParameters
Definition: SCR_AIGetLookParameters.c:1