Is there a callback that occurs when an AI reaches a Node in its path? I need to stop an AI after it touches a set number of Nodes (which will often be less than the full path).
I am using a GridGraph with AILerp, so the posts I’ve found so far in the forums may not work for me (since they are referring to AIPath and not AILerp).
If there isn’t a callback or notification, then where in the code does this happen? I can then tap into that to add a callback. It has to happen somewhere, as the AI turns correctly towards the next node.
I don’t think there’s such a callback but I’m not sure. Scanning through the AILerp code, it uses the PathInterpolator which has a NextSegment function. There is a lot going on in there so might not be the best place.
I tried making a test and adding a debug and it looks to work pretty well. You could set up an event action to be called from there.