Python Turret 2.5x

There are plenty of scripts out there that do what I want. Things like “track to nearest enemy” which would be ideal. The only problem is that these are all for 2.4x and I am using 2.5. Another problem is that I want to seporate the script into pan and tilt.

Does anyone have a “track to nearest enemy” script for 2.5? Or even better, know a tut for how to write one?

Thanks

Anyone? or is there anyone who could port a 2.49 script to 2.56 for me

this works with 2.5 too:
http://blenderartists.org/forum/showthread.php?t=195956&p=1795445&viewfull=1#post1795445

Thanks Monster, I think that will do nicely.