This is a script demonstrating a simple turret AI using .lua and scenery objects. You can turn all lights, some other scenery (just look for something that could look anything at all like a turret) into turrets by pressing the action key next to them (don't worry how close you are to it in height.)