Difference between revisions of "Talk:MoveTo"

No change in size ,  16:43, 22 February 2009
m
Typos
imported>QQuix
(Player.MoveTo in OnEquip/OnAdd blocks)
imported>Khnum666
m (Typos)
Line 7: Line 7:




Hmm... Moveto doesn't seem to like xmarkers (reference.moveto player doesn't work). Any  suggestions?[[User:Talkie Toaster|Talkie Toaster]] 12:26, 20 April 2006 (EDT)
Hmm... MoveTo doesn't seem to like XMarkers (reference.MoveTo player doesn't work). Any  suggestions?[[User:Talkie Toaster|Talkie Toaster]] 12:26, 20 April 2006 (EDT)




Line 13: Line 13:
What does this function work on? I think testing needs to be done on this. The article says it works for Actors, and implies that it doesn't work for some (or all) non-actors. Flippy is saying that it works for Activators with no mesh, but not for non-activators or activators with a mesh. I personally would really like to use this function for a neat effect I have in mind, but it won't work if I can't move meshes with this... I may do some testing later, if I get the chance, but testing definitely needs to be done by someone, regardless. --[[User:DragoonWraith|DragoonWraith]] 16:57, 23 May 2006 (EDT)
What does this function work on? I think testing needs to be done on this. The article says it works for Actors, and implies that it doesn't work for some (or all) non-actors. Flippy is saying that it works for Activators with no mesh, but not for non-activators or activators with a mesh. I personally would really like to use this function for a neat effect I have in mind, but it won't work if I can't move meshes with this... I may do some testing later, if I get the chance, but testing definitely needs to be done by someone, regardless. --[[User:DragoonWraith|DragoonWraith]] 16:57, 23 May 2006 (EDT)


:from my testing it seems to work fine on misc items. i created a test Mark/Recall spell, with the mark spell simply calling markObj.moveto player. the misc item in this case was a paintbrush. seemed to work repeatedly. :shrug: [[User:Scruggs|Scruggs]] 22:54, 26 May 2006 (EDT)
:from my testing it seems to work fine on misc items. I created a test Mark/Recall spell, with the mark spell simply calling markObj.MoveTo player. the misc item in this case was a paintbrush. seemed to work repeatedly. :shrug: [[User:Scruggs|Scruggs]] 22:54, 26 May 2006 (EDT)


::Well, that's encouraging. Thank you! --[[User:DragoonWraith|DragoonWraith]] 22:56, 26 May 2006 (EDT)
::Well, that's encouraging. Thank you! --[[User:DragoonWraith|DragoonWraith]] 22:56, 26 May 2006 (EDT)
Line 27: Line 27:
:::::::Excellent, thank you. --[[User:DragoonWraith|DragoonWraith]] 17:13, 27 May 2006 (EDT)
:::::::Excellent, thank you. --[[User:DragoonWraith|DragoonWraith]] 17:13, 27 May 2006 (EDT)


I'm having no luck with activators. "Unexpected behavior" certainly sums it up. Activators don't seem to respond to moveTo in the console, regardless of persistence. In a script, they seem to respond once, with subsequent calls having no effect. Strangely, calling activator.moveTo from a different cell correctly moves it the first time, but after leaving and immediately re-entering the cell, the activator has vanished, and attempts to reference it via the console to check getDistance report an invalid reference! [[User:Scruggs|Scruggs]] 00:02, 29 May 2006 (EDT)
I'm having no luck with activators. "Unexpected behavior" certainly sums it up. Activators don't seem to respond to MoveTo in the console, regardless of persistence. In a script, they seem to respond once, with subsequent calls having no effect. Strangely, calling activator.MoveTo from a different cell correctly moves it the first time, but after leaving and immediately re-entering the cell, the activator has vanished, and attempts to reference it via the console to check getDistance report an invalid reference! [[User:Scruggs|Scruggs]] 00:02, 29 May 2006 (EDT)


:Yes, the behavior of this function on non-actors is a little weird. The best method seems to be a combination of MoveTo and SetPos. MoveTo ONLY works when the object moves into another cell and SetPos does NOT work if the object moves into another cell. Just call both functions and it should work. But you should call MoveTo last, since it might abort the script (like a "return").
:Yes, the behavior of this function on non-actors is a little weird. The best method seems to be a combination of MoveTo and SetPos. MoveTo ONLY works when the object moves into another cell and SetPos does NOT work if the object moves into another cell. Just call both functions and it should work. But you should call MoveTo last, since it might abort the script (like a "return").
Anonymous user