This is a VERY small piece of code inspired by this:
http://youtube.com/watch?v=LBYoYsFgmBg
color backdrop 0
backdrop on
autocam off
sync on
sync rate 60
do
rotate camera camera angle x()+mousemovey(),camera angle y()+mousemovex(),camera angle z()
if mouseclick()=1 then move camera 1 : glowline(camera position x(),camera position y(),camera position z())
if mouseclick()=2 then move camera -1
sync
loop
function glowline(xx,yy,zz)
for x=0 to 2
repeat : inc obj : until object exist(obj)=0
make object sphere obj,3+x
position object obj,xx,yy,zz
ghost object on obj
color object obj,RGB(0,0,255)
next x
endfunction
Mouse to look/move!