Auto-translated
What about Juss456's method? I would do the same. Not just disable the AI, but completely disable it so it can't be touched. Although, it's possible that the computer will still try... But you can only use the priority function at your own risk; it doesn't work when you need it to, but when it feels like it. An ideal solution: surround the hero with a region (even a very small one) that cannot be passed through, and then unlock the region with a script.