No worries, there’s a couple of issues here so let me run through them with you and the we can see if you really want to use the Move Component To node.
So first thing first, this is an async node (shown by the clock in the top right of the node) and that means it will run over multiple frames and only iterate the code after completed when it’s movement is done. Meaning you can only set it, and let it move to a location which if they are a player has likely changed in the meantime. How do we get around this? You could just have a stop passed in to this and pick a new location On Tick but that also has the issue of jittery movement because it’s not what this node is for, as well as their being a set time to movement. So no matter how far the player gets in your current set up it would only take 2 second to reach them. Either 100cm away or 1 million cm away would take 2 seconds.
Lastly and the most important, the location and rotation values in this node are Relative to this actor, not world space. This means that anything you pass in much be relative or you’ll get odd results. Example, if your player is at 100,0,0 and you pass in world location to this it will just move to it’s own forward 100cm, not to the player location. So to have this move to the player’s location you need to find it’s location relative to this one. So in the example before the player is at 100, 0, 0, world space right? So say if this component is at -100, 0, 0, we’d have to plug in 200, 0, 0, because it’s 200 away from the player in it’s relative.
Also Begin overlap only fires once while the player remains in the volume, so even if you pass in a new correct location, the node won’t fire again until the player leaves and reenters the volume.
All in all this node is not best suited for moving an AI to the player location constantly in a “chasing” manner. If you’re going to have an area that you could use navigation mesh on I’d recommend using the AI suite Unreal comes with to save you the headache so I’ll leave some tutorials for that below.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
However if you would prefer to use that node for a specific reason, let me know here and I can see if I can hack something together for your use case.