How Do I Make The Player Look at a Character?

Hello! I’ve been trying to make the Player look at a Certain Character when Entering his Range, I tried doing that with Actor Begin Overlap, but I can’t reference the Character in the Player Blueprint.

How can I do that?

…if you do it with the “Begin Overlap” event you are passed a “Other Actor” variable which is the actor which began to overlap. Just use that!

Cheers

I did that, everything works, but nothing happens when I get close to my character, here is my Blueprint:

http://puu.sh/hI6PN/43ff21375e.png

In which BP is that? Either way you shouldn’t use “Get Player Controller” via index. You can either get the character via the “Other Actor” or just do it inside of your character.

Also overlap events will trigger at the same time in both scripts. You can do this inside of your main character and just check if it’s something you want to look at. (Add a tag, make it the child of some “look at” class which includes the collision sphere for the overlap or whatever).

First of all, thank You very much that you’re taking time into responding!

This is all in the Player BP, and this is the only BP I’m using now,
so far, everything works,

As you can see, I’ve set up some logs for Debug and they work, so It’s all going through, but the Camera just doesn’t want to rotate… Any Ideas why?

Is this the first or third person template?

Either way your camera is most of the time linked to the control rotation and not the actor location (you couldn’t move your camera freely in third person otherwise).

Look in the controls of your character or controller what moves the camera and how.

This is the Third Person Template, but the Camera is attached to the head socket to make a “True First Person Experience” so that you can see your feet.

And I believe that this is what moves the camera.

http://puu.sh/hI9We/40bb80298c.jpg

That is the control rotation.

You don’t want to rotate your actor up and down because you look there which is why this is separated. You have to move that “Control rotation”.

So what should I change? Is there a way to fix it?

I’m sorry I sound like a Noob, it’s my first game I’m making so sorry ;c

Don’t set the actor rotation but the control rotation.

That Fixed It! Now my Character rotates! The only problem is that It doesn’t face the Character it’s supposed to, I’m going to try to fix that myself! Thank You Very much!