# MoveTo is severely Buggy \[Fixed Fortnite v25.0\]

**URL:** <https://forums.unrealengine.com/t/moveto-is-severely-buggy-fixed-fortnite-v25-0/879773>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 9, 2023, 2:13am UTC](https://forums.unrealengine.com/t/moveto-is-severely-buggy-fixed-fortnite-v25-0/879773 "2023-04-09T02:13:33Z")\
**Posts on this page:** 1\
**Showing post:** 36

<div class="post-metadata">

**Author:** ![Conan\_Reis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/conan_reis/32/1016955_2.png) [@Conan\_Reis](https://forums.unrealengine.com/u/Conan_Reis)\
**Post date:** [June 9, 2023, 8:59pm UTC](https://forums.unrealengine.com/t/moveto-is-severely-buggy-fixed-fortnite-v25-0/879773/36 "2023-06-09T20:59:51Z")

</div>

Confirmed that `MoveTo()` is fixed.

I reran my [little test above](https://forums.unrealengine.com/t/moveto-is-severely-buggy/879773/10) and it all seems smooth now. [Relevant snippet from earlier post is below.]

If you change to the simpler `MoveToPositionalExpected()` instead of `MoveToPositional()` it works as it should be expected. No need for remembering the current position and teleporting and no need for a few frames to wait, etc.

It will still be nice to have out-of-the-box movement commands that adjust according to their target, more sophisticated pathing commands and socket / transform attachments - though this at least works and looks good visually. 👍

```auto
    #===========================================================
    # Move to specified offset of positional target adjusting over time as needed
    (Prop : creative_prop).MoveToPositionalExpected(Target : positional, Offset : vector3)<suspends>:void =
        TargetRotation := IdentityRotation() # [Could specify a target rotation or make relative to Target]
        
        loop:
            TargetXform := Target.GetTransform()
            TargetPos := TargetXform.Translation

            Arrived := race:
                block:
                    MovePos := TargetPos + TargetXform.Rotation.RotateVector(Offset)
                    # The farther apart the longer the time to get there [could pass in adjustment]
                    TimeToMove := Distance(TargetPos, Prop.GetTransform().Translation) * 0.005
                    Prop.MoveTo(MovePos, TargetRotation, TimeToMove)
                    true # Arrived
                block:
                    # Update move to location occasionally [could pass in value]
                    Sleep(0.5)
                    false # Not arrived

            if (Arrived?):
                break

```

---

_[View the full topic](https://forums.unrealengine.com/t/moveto-is-severely-buggy-fixed-fortnite-v25-0/879773)._
