Move Enemy Towards Player

The rotation is fine, but it just won’t move. What am I doing wrong?

Your setup is very unusual. The interpolation node gets the actor location from your enemy and the target is the position 200 units behind your character. With the interpolation node your enemies will have a faster movement speed when they are further away - do you want this to happen?

Never the less, it might be very slow, higher the multiplactors or the interp speed. btw. you could dissolve the multiply by -1 if you mulitply the forward vector by -200.

That was it. Thanks a lot.

You are correct and i applied what you said, but what is causing it to not move at all?

Try setting the SetActorLocationAndRotation to teleport

I tried this but its just not moving.

Is your Box Component Simulating Physics?

If so, then moving the root of the actor, won’t move the Box.

You can reparent your actor.

  • Drag the Box component on your left panel, up onto the default scene root to replace it.
  • Now your box should move when you SetActorLocation.

If that doesn’t work. Do SetLocationAndRotation on the Box directly, also make sure anywhere you were referring to the actor, you now refer to the box component. Specifically when in your BP you GetActorLocation with no input pin, you’ll want to GetWorldLocation for the Box.

btw. teleport is for things that have other stuff attaches that is simulating physics, so that when you move the parten object, the child objects wont fly all over the place because they have to deal with an extreme acceleration, they just get teleported :wink: