Code can't find ai.targetReached

Hi Everyone,

I’m very new to Unity and C#, and was pointed to this tool by a friend. I’ve been able to successful implement the basic grid navigation and so now i’m trying to use some code from the guide to select a random point and then create a random path to it. (see: https://arongranberg.com/astar/documentation/dev_4_1_2_9dcd8927/wander.php ).

But when i copy and paste the code into a script into visual basic it gives me an error on line 24 that targetReached cannot be found.

Any help is greatly appreciated.

Hi

Which version are you using?
That documentation is for 4.1.2 which is outdated. You should use this page instead if you are using the latest version: https://arongranberg.com/astar/docs/wander.html