Point head at object within a certain range

atmosgames

New member
I'd like my third person character's head to look at an object if he's within a certain range, like 10 units. I know about Aim Assist, but this points the camera too. I'd much rather the character's head just point at various objects, for example, NPCs you can talk to.

Thanks for any help!
 
I would approach this by subclassing an existing ViewType and then override LookDirection to return a new direction that the character should look. This direction will be independent of the camera.
 
Top