NPC always face towards you

Hi i want to ask that lets say i have a rigged model now I want that model as NPC in my game and i want him to stand still and only his head move and face towards the player, where ever player go it rotates its head only to player so how can i do that, any help would be appreciated, thnx

There is a node called “Find Lookat Rotation” it takes two points and gives you the rotation to face that direction.

You forgot to tell him how he can only rotate the head. I guess you will need to change the bone rotation of the headbone. But i haven’t tried that yet. You will need to make sure that he can’t turn his head too far (broken neck you know x))

thnx both of you for ur help but someone just gave me a video link in forum and it works exactly what i want so thnx again and i will post that link here too