The cover ability determines the direction that the character should face based on the cover point. Does it hit the correct cover point?1) the agent is facing the wrong way. In the screenshot below it should face the frustum gizmo, right?
Try increasing the stopping distance on NavMeshAgent.2) sometimes when it reaches the cover point it starts to continuously rotate around instead of just settling down (I tried increasing the arrive distance of the agent and the distance variable on MoveTowards component but that didn't work)
This is likely related to your behavior tree aborting the cover task. Try watching the tree to see what is triggering the abort.3) when it sees an enemy it just runs out of the cover and starts chasing them instead of staying in cover and using the shooting frustum on the right side and that makes the cover useless.
Try increasing the stopping distance on NavMeshAgent.
Well, the TargetInSight turns true and that branch has an abort type of lower priority so it aborts the cover branch. I don't recall changing anything related to abort types so what's wrong here?This is likely related to your behavior tree aborting the cover task. Try watching the tree to see what is triggering the abort.