4 protected static const string PORT_IN_COVER =
"InCover";
5 protected static const string PORT_COVER_LOCK =
"CoverLock";
7 protected SCR_AICombatMoveState m_State;
10 override void OnInit(AIAgent owner)
12 SCR_AIUtilityComponent utilityComp = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
14 m_State = utilityComp.m_CombatMoveState;
18 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
21 return ENodeResult.FAIL;
23 SetVariableOut(PORT_IN_COVER,
m_State.m_bInCover);
24 SetVariableOut(PORT_COVER_LOCK,
m_State.GetAssignedCover());
26 return ENodeResult.SUCCESS;
30 protected static ref TStringArray s_aVarsOut = {
34 override TStringArray GetVariablesOut() {
return s_aVarsOut; }
36 override bool VisibleInPalette() {
return true; }