Tracking to an objects instance?

Hey everyone,

I’m making a game in blender and it includes the ability to create turrets.
Currently they just fire in 8 directions constantly, but what i would really like it the ability for them to track to the nearest instance of the enemy and shoot it.

Simply setting track to the enemy just looks to layer2 and the master object.

Are there any scripts out there that can do this?

Thanks, i will look into them.