Stopping AStar Ability Problem

atmuc

Member
When the character arrive the target position, I stop ability from the code.

Character goes on moving with very small steps after I stop ability. There is no active ability. I see LegIndex value is changing. It is in Movement state at the Animator.

When I click Ability Change character stops and activates the Idle state at the Animator.

How can I solve that problem?

1643206766067.png
1643206871147.png
 

atmuc

Member
I added that code and it worked. Is it a bug or did I do something wrong?

public class AStarAIAgentMovement : PathfindingMovement
{
.........

protected override void AbilityStopped(bool force)
{
base.AbilityStopped(force);

m_AnimatorMonitor.SetAbilityChangeParameter(true);
}

}
 
Top