Difference between revisions of "Questions"
Jump to navigation
Jump to search
MoveTo isn't reccomended for items
imported>DragoonWraith (how to create a new article.) |
imported>ShadowDancer (MoveTo isn't reccomended for items) |
||
Line 1,102: | Line 1,102: | ||
MoveTo (object ID or ref var) 0 0 10 | MoveTo (object ID or ref var) 0 0 10 | ||
::The Wiki recommends [[MoveTo]] over [[SetPos]]. Not entirely sure why, but in this case, the code is shorter with [[MoveTo]]. | ::The Wiki recommends [[MoveTo]] over [[SetPos]]. Not entirely sure why, but in this case, the code is shorter with [[MoveTo]]. | ||
:::[[User:ShadowDancer|ShadowDancer]] 06:06, 9 July 2006 (EDT): The Wiki also states that [[MoveTo]] "is only reliable for Actors. Using it to move other objects types, especially non-persistent references and inventor items may result in unexpected behavior." so keep that in mind as well. I haven't personally tested it for moving items so I don't know the reason for this warning, but my guess is due to possible embedding in uneven ground and/or object orientation issues. | |||