I would make a timer like this first; It counts from 2 to 0 and when it hits 0 it returns to 2 again and so on.
Then, I would give a value to turret or I would use a global variable.
Then;
1- When timer hits 0
2- Animation is not playing shoot
OR
I'd prefer "not at shoot stance" (like when it's at 1 turret can shoot, when it's at 0 turret can't shoot)