Thanks again for the help. When it comes to the camera stuff I'm not too proficient. Like I say, I'm using the cameraFree01.wdl template script for the camera and I just need something that will take the existing code in that script and make it so the camera can orbit around an arbitrary point. The script is so long and all the variables already set. Changing variables around in order to get a piece of code working doesn't really work in this case for me asI'm not really even sure what the camera is doing in the first place. I wrote in the right mouse button code just so I could use the mouse to control pan and tilt, but that's as far as my skills in modifying this code go.
Truly what I need is just a simple camera code where it can be controlled by the WASD keys just like the free camera, but instead rotating on its own axis for pan and tilt, it orbits around the current center of the view by using the right mouse button to control the rotation (move left and it orbits to the left, move right, and it does the opposite, etc.). I've looked all over for simple code that does this but I can't seem to find any, which is why I'm trying to modify the existing cameraFree code. If anyone knows of something I'm missing then please by all means point me in the right direction. I did find some code here in the forum that seems to be what I need, but I can't get it working for some reason, no matter how I try it.