Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AICharacterStats.c
Go to the documentation of this file.
1 class SCR_AICharacterStats : AITaskScripted
2 {
3  protected SCR_AIInfoComponent m_AIInfo;
4 
5  //------------------------------------------------------------------------------------------------
6  override void OnInit(AIAgent owner)
7  {
8  SCR_ChimeraAIAgent chimeraAgent = SCR_ChimeraAIAgent.Cast(owner);
9  if (!chimeraAgent)
10  SCR_AgentMustChimera(this, owner);
11  m_AIInfo = chimeraAgent.m_InfoComponent;
12  if (!m_AIInfo)
13  NodeError(this, owner, "Can't find AIInfo component.");
14  }
15 };
SCR_AgentMustChimera
ENodeResult SCR_AgentMustChimera(Node node, AIAgent owner)
Definition: NodeError.c:21
SCR_AICharacterStats
Definition: SCR_AICharacterStats.c:1
NodeError
ENodeResult NodeError(Node node, AIAgent owner, string msg)
Error call to be used in scripted BT nodes.
Definition: NodeError.c:3
SCR_ChimeraAIAgent
Definition: SCR_ChimeraAIAgent.c:5
m_AIInfo
SCR_AIInfoComponent m_AIInfo
Definition: SCR_AIUtilityComponent.c:11