Difference between revisions of "MoveTo"

Jump to navigation Jump to search
581 bytes added ,  21:21, 28 May 2007
no edit summary
imported>Wrye
m (Link to summon object.)
imported>Wrye
Line 15: Line 15:
set xp to myObject.getPos x
set xp to myObject.getPos x
myObject.setPos x xp</pre>
myObject.setPos x xp</pre>
* Note however, that if the moved object is moved to a new cell, it may snap back to its original cell after quit/reload (while keeping the new x,y,z coordinates). This seems to not happen as much when moving between Tamriel subspaces, but definitly happens when moving to and between Shivering Isles and Oblivion worldspaces. If the object being moved is only supposed to be a marker, consider using a marker actor instead. (See [[Teleport Recall]].) (Actors do not suffer from worldspace snapback, and should react correctly to closing of an Oblivion gate.)
* To adjust the object relative to the players heading (i.e. place it in front of the player), you'll need to offset it's position. See [[Summon Object]] for full code sample.
* To adjust the object relative to the players heading (i.e. place it in front of the player), you'll need to offset it's position. See [[Summon Object]] for full code sample.
* Script functions that make one actor target another (like [[SayTo]] or [[StartCombat]]) will not work when MoveTo is used on the target in the same frame, even when the target is moved only by a few inches.
* Script functions that make one actor target another (like [[SayTo]] or [[StartCombat]]) will not work when MoveTo is used on the target in the same frame, even when the target is moved only by a few inches.
Line 22: Line 23:
* [[PositionCell]]  
* [[PositionCell]]  
* [[Summon Object]]
* [[Summon Object]]
 
* [[Teleport Recall]]


[[Category: Functions]]
[[Category: Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]
Anonymous user

Navigation menu