Need help with PredefinedPath

I need a PredefinedPath for my script to work (Dex walker can’t find a way and Acuity’s walker just goes crazy). How do I build and call a PredefinedPath?

it’s not neuro-science. You build the path on init. it’s an array of Tiles that gets looped through from beginning to end returning the first that is within walking distance.