Set Focus - AI looking down

Hi all. Does anyone know why AI controlled character is looking down at the base of a pawn set to be the focus via ‘set focus’ node? I can’t seem to find a way to control the aiming of the AI characters

1 Like

Did you ever find out ?

No. I’ve created another actor, a sphere and attached it to player at one of the spine bones and then set the AI focus to that sphere actor instead of player. Best I could think of

I was trying a similar thing but somehow my characters head rotate in a single axis (horizontal) and I’m not sure why. Do you have full control that way ? Here is my situation btw : https://m.imgur.com/account/inediblered/images/NZWD6UU

SetFocus probably sets the focus point to the pivot (root) of the target actor.

You can use SetFocalPoint to manually set the exact location the AI should look at. You could get the world location of a bone or specific component and set the focal point with this position.

The solution you provided above works fine.
You could also execute SetFocalPoint in your Event Tick.

I guess SetFocus does the same thing internally.

Yes, it seems to focus on a pivot which, for the capsule or the character will be at the bottom. As far as I remember SetFocalPoint is one time event, as in: it snaps to where you want but as soon as you move it doesn’t follow that point as it does when you use SetFocus

Yeah, I guess you could do SetFocalPoint on tick if it doesn’t impact the performance