Hi,
I start a path with seeker.StartPath()
or seeker.StartMultitargetPath()
.
I try to find out when the AI has reached the end of the path.
ai.reachedEndOfPath
works for the first path the AI is taking. But for the second path that variable is immediately true and even after the call of seeker.pathCallback
that variable (as well as ai.reachedDestination
) is true.
How can I figure out if the ai already got the new path from the seeker in order to ignore the reachedEndOfPath
value for that time?
Note: I cannot set the destination-property because I usually need MultiTargetPath.