Here's a little code to let the camera follow your plane:
sync on
`make a plain
make object box 1,5,5,10 : color object 1,rgb(65,65,65)
`make a world
make matrix 1,1000,1000,50,50
do
`controls
move object 1,1
if upkey()=1 then pitch object down 1,2
if downkey()=1 then pitch object up 1,2
if leftkey()=1 then turn object left 1,2
if rightkey()=1 then turn object right 1,2
`call function
chase_cam(1)
sync
loop
`the function
function chase_cam(id)
`get player data
posx#=object position x(id)
posy#=object position y(id)
posz#=object position z(id)
angley#=wrapvalue(object angle y(id)-180)
anglex#=wrapvalue(object angle x(id)-180)
`the distance to the plane
distance#=20.0
camx#=newxvalue(posx#,angley#,distance#)
camz#=newzvalue(posz#,angley#,distance#)
camy#=newyvalue(posy#,anglex#,distance#)
`smooth the camera movements
camx#=curvevalue(camx#,camera position x(),15)
camz#=curvevalue(camz#,camera position z(),15)
camy#=curvevalue(camy#,camera position y(),15)
`update camera
position camera camx#,camy#,camz#
point camera posx#,posy#,posz#
endfunction