Does anyone know of a way to get a turret to rotate on the spot to face whatever it is fireing on? (similar to what the Carassian turrets did in the battle for the Chintoka system in DS9) Any help on this would be greatly apprecciated :)
I didn't make it!
I am guessing giving the turrets some sort of engine so they can rotate and then restricting the fire arc so they have to rotate would do the trick. For that you'd need to modify the ODFs. I am not sure if you could just modify the specific ODF for each turret or if you would have to create a 'turretphysics' ODF. to get it to apply to all of them.
Create a forward facing hp assign the weapon to it give the turret movement
I've been successful somewhat in this endeavour...but not totally.. I can get the turret to rotate when i test it against my allied ships..but when it goes against enemy ships they just sit there until the ship comes into the weapon arc and then they fire
how would I give the turret movement?
Not sure if this will solve it but I think you'd need to set the turret to red alert and give it full movement autonomy. There's a command: defaultGreenAlert = 1 I don't know if this works but you might try setting this in the odf: defaultRedAlert = 1 If that doesn't do it, the turrets might not work until you set them manually. Unfortunately, that won't help if the AI doesn't do the same when it uses them. Either way, if the fix is in the movement autonomy, I don't know what to tell you, as I don't know of a command for that. You all may need to try different things until something works. As thunderfoot and Sonic said, you'll probably have to give it a forward facing HP, give it engines in the odf, then create a physics file with low (or 0) impulse speed, but give it the ability to turn. I'd base it on the construction phys, and change the params that allow it movement to suit. That's my guess, anyway. Good luck.
it might be possible to set the physics so that the turret is a ship, with a move speed of 0 but can rotate on the spot without moving (I'm sure there is something about minimum speed or arc for turn.)