Hi guys, I am in the middle of writing new mining script and I think this is the hardest part now, to create a pathfinding algorithm. I can tell what statics are good to as part of the path, I can tell what are not good and I can tell what objects are making tile impassable for me. With these known facts, I should be able to write the pathfind sc, but I lack the idea about the proper algorithm, any idea how to solve it? even in theory, it could help a lot now, or if you know some working pathfinding sc, where I can define target coords, or to define good and bad statics to move on etc, if you could link me to it, would be great.
also is there a way for function to return 2 arrays?