I just made it to a function

You can use this function on just the matrix you wan't to

No matter what shape it have.
Here it is:
function camera_ground( cameranumber, speed, turn_speed, matrix_number)
control camera using arrowkeys cameranumber,speed,turn_speed
position camera camera position x(), get ground height(matrix_number, camera position x(), camera position z()) + 10, camera position z()
endfunction
In case you don't know how to use it then here's a quick example code

:
`Normal settings
sync on
sync rate 60
hide mouse
`Matrix
make matrix 2,2000,2000,20,20
randomize matrix 2,200
update matrix 2
`the loop
Do
`Here we use the function. The first number you see is the camera number, and the two next
`numbers you see is the camera speed and turn speed. Then the last number is wich matrix
`We wanna get the ground height on.
camera_ground( 0, 3, 3, 2)
sync
loop
`The function.
function camera_ground( cameranumber, speed, turn_speed, matrix_number)
control camera using arrowkeys cameranumber,speed,turn_speed
position camera camera position x(), get ground height(matrix_number, camera position x(), camera position z()) + 10, camera position z()
endfunction
Enjoy