What the best way to lock on to a enemy?

Hi I’m putting together a dark soul like movement and I’m trying to put together a lock on functionality so that when you are lock-on to an enemy you will face it at all time. I have started to just set the rotation on tick, however I think this is probably the wrong approach.

Does anyone know a better way?

Providing you’re using third person, something like this might be worth exploring:

You will need to flesh it out, of course - check whether the clicked Target is an actual enemy. Currently this will lock to pretty much everything.

Image from Gyazo

Hi Everynone

Thanks for the response. It’s kind of what I’m doing at the moment. I just didn’t think tick was the best place for it. thanks great cheers