Thanks for Aron’s great system, I’m a new for this system.
I have a problem: How can I get the distance between AI and the target? If the distance is more than 1000, I don’t want to AI to move to the target. If the distance is less than 1000, AI can move to the target. Please give me some adivices.
Thanks in advance!
I can get the distance by using getTotalLength(), but how can i finish the logic easily:
If the distance is more than 1000, I don’t want to AI to move to the target. If the distance is less than 1000, AI can move to the target.
Sorry, cannot help you that much with this one (would require me to write the whole script for you basically).
It is not built in to the AIPath script, so you would have to write your own custom AI script, that script would then repeatedly search for paths to the player and if the distance was greater than 1000 it would also (for example) do a random path search to just wander around.