All the lock on code did was force the player to pan towards the closest enemy, it wasn't used for combat at all it was an attempt at implementing the Zelda lock on, the current lock on system doesn't work well at all imo, I should get twilight princess (when it comes out) and have a good look at the combat, camera and lock on features that has.