Change between Actors depending on position

Essentially is like the Bloodbourne Lock on System: YouTube

which when youre locked on an enemy you can then lock on the enemies on the left and on the right of the locked enemy. I managed to do that, but if theres more than 3 enemies, the lock will only go left 1 enemy to the left or right (img here to explain - Imgur: The magic of the Internet