Making the player character face a locked-on target

if he’s always facing towards you you can set your rotation to 180 degrees more. but it ll be broken if his rotation isn’t looking towards you. If you make it so that you can only lock onto something that’s attacking you, meaning it will look towards YOU at all time, it could work perfectly. Pretty simple but it has obvious limits (wont be able to dodge people if they always look at you/face towards you, only to people who face you precisely, etc.