7 static const string PORT_ENTITY_IN =
"GroupIn";
10 ChimeraCharacter m_pCharacter;
13 AIBaseMovementComponent m_pMyMovementComponent;
15 override bool VisibleInPalette()
20 override void OnEnter(AIAgent owner)
22 GetVariableIn(PORT_ENTITY_IN, m_pFollowedEntity);
23 if (!m_pFollowedEntity)
25 m_pFollowedEntity = owner.GetParentGroup();
28 m_pMyMovementComponent = owner.GetMovementComponent();
29 if (!m_pMyMovementComponent)
32 setupResult = m_pMyMovementComponent.RequestFollowPathOfEntity(m_pFollowedEntity);
35 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
37 if (!m_pMyMovementComponent || !setupResult)
38 return ENodeResult.FAIL;
40 if (m_pMyMovementComponent.HasCompletedRequest(
true))
41 return ENodeResult.SUCCESS;
42 return ENodeResult.RUNNING;
45 protected static ref TStringArray s_aVarsIn = {
48 override TStringArray GetVariablesIn()