When you setup a “SetFocus” task something like this:
Then you got Aim Offset of AI when you close to AI like this:
It’s seem like AI aiming to pivot point of player character.
I found a solution for myself, anyone have same problem can try this!
First, you need create a “Pawn”, a empty pawn, naming what you want, i called it “BP_FPS_FocusPawn”:
No need setup anything in that pawn.
Open your player character, in “Begin Play”, spawn the pawn you just created then attach it to what ever bone you want, or you can create a socket in your player character skeletal then attach to that socket, in my case, i attach the pawn to “spine_03”.
In your “SetFocus” task you setup like this:
Now, you have the result like this:
or when i’m attach the pawn to “head” bone