I am at a loss here.
Why would this code not work? Activation button is named SweepHorizon, 5 turret bases are all named SweepHorizon1 and below is the code I am using.
@ loop (there is no space here but apparently someone's name is loop)
if SweepHorizon == 1 then
write("SweepHorizon1_rotation", 20)
wait 1000
write("SweepHorizon1_rotation", 0)
wait 1000
write("SweepHorizon1_rotation", -20)
wait 1000
else
write("SweepHorizon1_rotation", 0)
end
goto loop
Now if I simply this code to something like
if :SweepHorizon then goto2 else goto10 end
:SweepHorizon1=15 :SweepHorizon1=-20
:SweepHorizon1=15 :SweepHorizon1=-20
:SweepHorizon1=15 :SweepHorizon1=-20
goto1
The turrets will "rotate from side to side
(adding a wait line inbetween)
I am trying to use the first code so there is no break in-between and is a fluid motion rather than duplicated the 2nd code over and over and having a delay in last line.