Update point based on player location + offset

Hi I’m new to Unreal Engine and I need some help. Basically I’m trying to find a point that is behind a targeted actor that has an offset and updates based on the players location and distance. I’ll try to draw it out and explain more clearly on what I’m trying to achieve. (Sorry my drawing skills are horrible)

So let say the black circle is the player, the red circle is the targeted actor, and the yellow circle the point that I’m trying the find. As shown in the image I want the yellow point be always be on the opposite side of the targeted actor from the enemy, but having some offset. As you can see the point is not directly opposite of the player, but moved to the left a little bit. The point should move if the player moves. If the player moves left then the point should move left as well keep the same offset and always remain on the opposite side of the character. The same should apply when the player moves away or towards the targeted actor.

My explanation might not be clear so let me know what your confused about and I’ll try to explain more clearly. Thanks! :+1:

2 Likes

Play with this:

See if it gets you close to what you need.

2 Likes

Thanks @Everynone, I was wondering if you can make it using a “Draw Debug Point.” I don’t want another actor or object I just want a point, but this is a really good start. Thanks!

Add world location to the relative offset and you’re done.

1 Like

Thanks @Everynone, that worked! :+1::+1:

1 Like