Auto-translated
Here's an idea ;) thanks!
It won't look good to teleport them to the middle of the map. They run away from the Dungeon (from the point where the player can't see them) through the visible part (the large part) of the map... so it can only be done this way :)
Added 8 minutes later
I tried, but it doesn't work. I put a sensor that shows that points are added every second by 2500, but it still runs its distance and stops earlier than it should... I don't understand, did the developers really not come up with such a functional command to move a hero by means of normal movement over long distances in real time...
There is such a function - I don't have the source code at hand right now, but you can check the script in the prologue of the Orcs campaign in Lords;
There is also a bug with the hero stopping, related to him passing through the garrison gate - there you can also pull off a "trick," related to creating a point region in the gate.