Did it provide anything else about the tmp variable? Something? Anything?
Turret stuff goes to the individual turret entries.
That is something like so
#Ship Classes
$Name: GTFR Triton
+nocreate
$Subsystem: turret01,1,1.0
$Default PBanks: ( "" )
$Default SBanks: ( "Tornado" )
$Maximum Barrel Elevation: 45
$Turret Base FOV: 300
$Flags: ( "salvo mode" "fire on target" "reset when idle" )
$Subsystem: turret02,1,1.0
$Default PBanks: ( "AAAf" )
$Default SBanks: ( "Harpoon" )
$Flags: ( "fixed firingpoints" "use multiple guns" "fire on target" "reset when idle" )
$Name: GTC Leviathan
+nocreate
$Subsystem: turret09a-01-main, 3, 9.0
$Default SBanks: ( "Cyclops" )
$Flags: ( "reset when idle" )
$animation: triggered
$type: initial
+relative_angle: 90,180,0
#End
Was for what fire on target does. It allows turret to fire only if the targetpoint it has is reasonably close to the point where the barrels are pointing at. Reset when idle returns turret to their initial position should the turret find itself without targets. So if you defined turrets to start at pointing towards front of the ship barrels levelled then if the turret shoots all the targets or they move beyond its FOV it will reset to that very same position after few seconds delay.