How do I make a souls like lock on and target switching sysem?

Hello I’m still very new to unreal and followed a tutorial on how to make a lock on system but the creator left out the target switching portion.


Any help is appreciated.