Sorry to tell you
But
Kinda everyone already knows to do this because of all this type of deck and that castle and some people’s coding skills are getting insane 😕
(Not a insult)
It's actually not path finding but rather it's tracking, path finding actually work like the enemy tries to find the easiest and closest way to reach the player rather than following its steps, but this is not bad you can use this in many things :D