Auto-translated
I don't even know what to do.
For now, I can suggest creating a text file named new.lua in the data folder, copying the function with MoveHeroRealTime into it, and replacing it with SetObjectPos. Then, in the console, type @doFile('new.lua'). This will allow them to teleport without any issues.
It would be best to start with the save file you sent me, as it executes several other important functions alongside MoveHero.
I will prepare a file with all the functions related to movement in the near future for those who encounter this problem.