A* Pathfinding Project

Detecting the Node Link


#1

Hi, I’ve recently started using this and I was wondering if there a way to make a certain action play while the Ai is in a certain part of the map or performing a certain action.

I read in the script for Node Link 2 that you can detect if you are on this node. How would I be able to go about doing this? I would like to play a jump animation or be able to increase the movement speed while on the jump node for example. Thanks in advance.


#2

Hi

If you are using the RichAI movement script (which is the only one that has some reasonable support for off mesh links I’m afraid) you can use the RichAI.onTraverseOffMeshLink callback.