I’m doing realtime strategy game,
and need to add move command through shift + right mouse click
Right now I’m doing it with creating new path after ending first one,
via own command list, shift+click adding a command that creates new path.
but it gives me endpoint animation, like he is stoping and starting all the time )
How can I create new path and merging it with first one mb?
and if I add an endpoint will it create points in between ?
Adding new clicked points I guess is very bad solution )
Need to add a lot of recalculated points from some new path,
trying to use Seeker StartPath mb
how to generate a new path without assigned to the agent ?
Why this one ABPath.Construct(AIPath.destination, newDestination, OnPathComplite);
never starts OnPathComplite?
Just need to build 2 paths, then combine and after that start it as one.
Is it posible ? Are they could be calculated without starting?
However I think it’s better to not combine paths and instead adjust the slowdown distance for the agent. For example for the AIPath script there is a variable called Slowdown Distance. If you set this to zero the agent will barely slow down. You should also set “When Close To Destination” to “Continue To Exact Destination” instead of “Stop”.
You can take a look at the Patrol script which makes the agent pass through a series of points.