Cheo
Active member
Hello, I'm having new difficulties with Astar and UCC : my objective is to create a simple tree ordering an agent to pursue another agent with the Seek task and to start using his weapon when inside of a small range, until the target is dead. The agent usually succeeds in approaching the target and dealing 2 blows, but the target often gets pushed back a little and the agent gets stuck in position, the Seek task highlighted in green in the tree but apparently unable to start, unless the attack range is increased (but since the agent is using a knife, he needs to be at a slightly smaller distance to hit his target).
There are no issues with a NavMesh agent using the exact same tree, and I can usually order my Astar UCC characters to move to a point right next to their feet with no problem. Reducing the "End Reached Distance" value from the AIPath component does help the agent starting the necessary movement, but it usually ends up with him turning in circles or maintaining his walking animation when reaching his destination (after all, the default value 0.2f seems already small).
This leads me to ask 2 questions : first, has anyone successfully created an Astar-UCC agent as I described chasing and attacking a target with a small range weapon ? And what values do you recommend for the AIPath component - or would you recommend leaving the default values ?
There are no issues with a NavMesh agent using the exact same tree, and I can usually order my Astar UCC characters to move to a point right next to their feet with no problem. Reducing the "End Reached Distance" value from the AIPath component does help the agent starting the necessary movement, but it usually ends up with him turning in circles or maintaining his walking animation when reaching his destination (after all, the default value 0.2f seems already small).
This leads me to ask 2 questions : first, has anyone successfully created an Astar-UCC agent as I described chasing and attacking a target with a small range weapon ? And what values do you recommend for the AIPath component - or would you recommend leaving the default values ?