Dynamic Npc Look At

Hey Devforum, I just have a quick question if anyone got like a starting point on how to make a system like shown in the video. (I mainly mean the turning around to look at the player)

That’s all, thanks!

Just check whether the difference between the angle which the npc is looking at currently and the angle you are from the npc is bigger than 45 degrees for example. If it is, make the npc turn.

1 Like

For best smoothness you’d use a local script to run this. You’d basically have the neck joint look at the player, and if the player moves too far away, the body of the NPC will turn.

Seems like a head horizontal movment + character Align Orientation + animation when the player is higher than certain angle. First try to get to rotate the head with C0 * TargetCframe then activate the align orientation when the player is out of sight