Not sure what exactly you are looking for, the locking on in regards to the player right clicking and facing a target is covered in the Kingdom Hearts movement tutorial. The code for the camera's unique behavior when you lock onto a target is found in the code in this resource.