_dir = getDir HoloRoom
_pos = getPos HoloRoom

_cube1 = "LNN_Shcube2" camCreate _pos
_cube1 setDir _dir
_cube2 = "LNN_Shcube2" camCreate _pos
_cube2 setDir _dir
_cube3 = "LNN_Shcube2" camCreate _pos
_cube3 setDir _dir
_cube4 = "LNN_Shcube2" camCreate _pos
_cube4 setDir _dir

_cube1 setpos [(_pos select 0),(_pos select 1)-15,(_pos select 2)+5]
_cube2 setpos [(_pos select 0),(_pos select 1)-15,(_pos select 2)-5]
_cube3 setpos [(_pos select 0)+5,(_pos select 1)-15,(_pos select 2)]
_cube4 setpos [(_pos select 0)-5,(_pos select 1)-15,(_pos select 2)]

[_cube1, -10] exec "rotation.sqs"
[_cube2, 10] exec "rotation.sqs"
[_cube3, -10] exec "rotation.sqs"
[_cube4, 10] exec "rotation.sqs"

_distance = -15

~1

#loop1

_cube1 setpos [(_pos select 0),(_pos select 1)+_distance,(_pos select 2)+5]
_cube2 setpos [(_pos select 0),(_pos select 1)+_distance,(_pos select 2)-5]
_cube3 setpos [(_pos select 0)+5,(_pos select 1)+_distance,(_pos select 2)]
_cube4 setpos [(_pos select 0)-5,(_pos select 1)+_distance,(_pos select 2)]

_distance = _distance + 0.5

?_distance >=15: goto "reset"

~0.025

goto "loop1"


#reset

_distance = -10

~0.025

goto "loop1"