Difference between revisions of "MoveTo"
Jump to navigation
Jump to search
imported>Tegid (I have never had trouble moving activators, so let's not single them out.) |
imported>JOG (Notes...) |
||
Line 9: | Line 9: | ||
'''Notes:''' | |||
*If this function is used to move the player, it will also act as a [[Return]] function -- no following lines of the script will be processed. | |||
*This function is only reliable for Actors. Using it to move other objects types, especially non-persistent references and inventor items may result in unexpected behavior. | |||
*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. | |||
==See Also== | ==See Also== | ||
Line 17: | Line 22: | ||
[[PositionCell]] | [[PositionCell]] | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Movement Functions]] | [[Category: Movement Functions]] |
Revision as of 07:55, 28 May 2006
Syntax:
MoveTo MarkerID, x, y, z (optional)
Example:
MoveTo HiddenCaveMarker MoveTo player, 512, 0, 0
Moves the object to the specified reference's location. The x, y, z are optional offsets from the target reference.
Notes:
- If this function is used to move the player, it will also act as a Return function -- no following lines of the script will be processed.
- This function is only reliable for Actors. Using it to move other objects types, especially non-persistent references and inventor items may result in unexpected behavior.
- 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.