3 protected static const string STANCE_PORT =
"Stance";
5 protected SCR_AIUtilityComponent m_Utility;
8 override void OnInit(AIAgent owner)
10 m_Utility = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
14 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
17 return ENodeResult.FAIL;
19 EAIThreatState threat = m_Utility.m_ThreatSystem.GetState();
21 int stance = GetStanceFromThreat(threat);
22 SetVariableOut(STANCE_PORT, stance);
24 return ENodeResult.SUCCESS;
28 override bool VisibleInPalette() {
return true; }
31 protected static ref TStringArray s_aVarsOut = { STANCE_PORT };
32 override TStringArray GetVariablesOut()