_camera = "camera" camcreate [0,0,0]
_camera cameraEffect ["internal","back"]

HoloRoom setpos [(getpos HoloRoom select 0, getpos HoloRoom select 1, getpos HoloRoom select 2) + 15]
0 fadeSound 0.0

_dir = getDir HoloRoom
_pos = getPos HoloRoom
_tm1 = 0.05

[] exec "fx2.sqs"
[] exec "fx3.sqs"

Pattern1 = false
Pattern2 = false
Pattern3 = false

_camera camsettarget HoloRoom
_camera camSetPos [(_pos select 0), (_pos select 1) - 3, (_pos select 2)]
_camera camSetFOV 5
_camera camCommit 0
@camCommitted _camera

_cube1 = "LNN_Shcube1" camCreate _pos
_cube1 setDir _dir
_cube1 setPos [(_pos select 0),(_pos select 1)-1,(_pos select 2)]

[] exec "MusicLoop.sqs"
[_cube1, 2] exec "rotation.sqs"

_shape1 = "LNN_Shcube2"

#patternloop

~_tm1

_cube2 = _shape1 camCreate [(_pos select 0),(_pos select 1),(_pos select 2)+1]
_cube2 setDir _dir

~_tm1

_cube3 = _shape1 camCreate [(_pos select 0)+1,(_pos select 1),(_pos select 2)]
_cube3 setDir _dir

~_tm1

_cube5 = _shape1 camCreate [(_pos select 0),(_pos select 1),(_pos select 2)-1]
_cube5 setDir _dir

~_tm1

_cube4 = _shape1 camCreate [(_pos select 0)-1,(_pos select 1),(_pos select 2)]
_cube4 setDir _dir

~_tm1

_cube6 = _shape1 camCreate [(_pos select 0)+1,(_pos select 1),(_pos select 2)+2]
_cube6 setDir _dir

~_tm1

_cube7 = _shape1 camCreate [(_pos select 0)+2,(_pos select 1),(_pos select 2)+1]
_cube7 setDir _dir

~_tm1

_cube8 = _shape1 camCreate [(_pos select 0)+2,(_pos select 1),(_pos select 2)-1]
_cube8 setDir _dir

~_tm1

_cube9 = _shape1 camCreate [(_pos select 0)+1,(_pos select 1),(_pos select 2)-2]
_cube9 setDir _dir

~_tm1

_cube10 = _shape1 camCreate [(_pos select 0)-1,(_pos select 1),(_pos select 2)-2]
_cube10 setDir _dir

~_tm1

_cube11 = _shape1 camCreate [(_pos select 0)-2,(_pos select 1),(_pos select 2)-1]
_cube11 setDir _dir

~_tm1

_cube12 = _shape1 camCreate [(_pos select 0)-2,(_pos select 1),(_pos select 2)+1]
_cube12 setDir _dir

~_tm1

_cube13 = _shape1 camCreate [(_pos select 0)-1,(_pos select 1),(_pos select 2)+2]
_cube13 setDir _dir

~_tm1

_cube14 = _shape1 camCreate [(_pos select 0),(_pos select 1),(_pos select 2)-3]
_cube14 setDir _dir

~_tm1

_cube15 = _shape1 camCreate [(_pos select 0)+2,(_pos select 1),(_pos select 2)-3]
_cube15 setDir _dir

~_tm1

_cube16 = _shape1 camCreate [(_pos select 0)+3,(_pos select 1),(_pos select 2)-2]
_cube16 setDir _dir

~_tm1

_cube17 = _shape1 camCreate [(_pos select 0)+3,(_pos select 1),(_pos select 2)]
_cube17 setDir _dir

~_tm1

_cube18 = _shape1 camCreate [(_pos select 0)+3,(_pos select 1),(_pos select 2)+2]
_cube18 setDir _dir

~_tm1

_cube19 = _shape1 camCreate [(_pos select 0)+2,(_pos select 1),(_pos select 2)+3]
_cube19 setDir _dir

~_tm1

_cube20 = _shape1 camCreate [(_pos select 0),(_pos select 1),(_pos select 2)+3]
_cube20 setDir _dir

~_tm1

_cube21 = _shape1 camCreate [(_pos select 0)-2,(_pos select 1),(_pos select 2)+3]
_cube21 setDir _dir

~_tm1

_cube22 = _shape1 camCreate [(_pos select 0)-3,(_pos select 1),(_pos select 2)+2]
_cube22 setDir _dir

~_tm1

_cube23 = _shape1 camCreate [(_pos select 0)-3,(_pos select 1),(_pos select 2)]
_cube23 setDir _dir

~_tm1

_cube24 = _shape1 camCreate [(_pos select 0)-3,(_pos select 1),(_pos select 2)-2]
_cube24 setDir _dir

~_tm1

_cube25 = _shape1 camCreate [(_pos select 0)-2,(_pos select 1),(_pos select 2)-3]
_cube25 setDir _dir

~_tm1

?Pattern1: goto "check2"
Pattern1 = true
_shape1 = "LNN_Shcube3"

#patternEnd

deleteVehicle _cube25

~_tm1

deleteVehicle _cube24

~_tm1

deleteVehicle _cube23

~_tm1

deleteVehicle _cube22

~_tm1

deleteVehicle _cube21

~_tm1

deleteVehicle _cube20

~_tm1

deleteVehicle _cube19

~_tm1

deleteVehicle _cube18

~_tm1

deleteVehicle _cube17

~_tm1

deleteVehicle _cube16

~_tm1

deleteVehicle _cube15

~_tm1

deleteVehicle _cube14

~_tm1

deleteVehicle _cube13

~_tm1

deleteVehicle _cube12

~_tm1

deleteVehicle _cube11

~_tm1

deleteVehicle _cube10

~_tm1

deleteVehicle _cube9

~_tm1

deleteVehicle _cube8

~_tm1

deleteVehicle _cube7

~_tm1

deleteVehicle _cube6

~_tm1

deleteVehicle _cube5

~_tm1

deleteVehicle _cube4

~_tm1

deleteVehicle _cube3

~_tm1

deleteVehicle _cube2

~_tm1

goto "patternloop"

#check2

?Pattern2: goto "check3"
Pattern2 = true
_shape1 = "LNN_Shcube4"

goto "PatternEnd"

#check3

?Pattern3: goto "reset"
Pattern3 = true
_shape1 = "LNN_Shcube5"

goto "PatternEnd"

#reset

Pattern1 = false
Pattern2 = false
Pattern3 = false

_shape1 = "LNN_Shcube2"

goto "PatternEnd"