Talk:MoveTo
This function terminate the script it is called in. For instance if you wrote this in the result script of a terminal :
myObject.Disable myObject.MoveTo myMarker myObject.Enable set xPos to myObject.GetPos X myObject.SetPos X xPos
It will display the texture of the object where you wanted it to be but the collision block of the objet will stay at its previous location. If the object is an activator you won't be able to use it until you restart the game (at this time, the collision block will be at the intended place of teleportation). This can be verified easily by typing myObject.Enable in the console right after launching the teleportation script. You will then be able access the object at his new location.
possible collission problem solution
create a quest script that uses a variable which is being set in your teleport script before the moveto/setpos command runs, in the quest script use a myobject.enable 1 command once the variable gets set and maybe add a short timer so the object wont be enabled before its being teleported. this way the objects enable line wont be blocked out by the teleport command --Jaysus 16:13, 11 November 2010 (UTC)