Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AICompleteLookAction.c
Go to the documentation of this file.
1 class SCR_AICompleteLookAction : AITaskScripted
2 {
3  SCR_AIUtilityComponent m_Utility;
4 
5  //------------------------------------------------------------------------------------------------
6  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
7  {
8  if (!m_Utility)
9  {
10  m_Utility = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
11  if (!m_Utility)
12  return ENodeResult.FAIL;
13  }
14 
15  m_Utility.m_LookAction.Complete();
16  return ENodeResult.SUCCESS;
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  protected override bool VisibleInPalette() {return true;}
21 };
SCR_AICompleteLookAction
Definition: SCR_AICompleteLookAction.c:1