First things first, they are COMMANDS not codes (sorry, just minor point)
The commands are similar to those used to deal with objects.
eg: MOVE CAMERA, TURN CAMERA LEFT etc.
Cameras are created with a starting position of 0,0,0 - just like objects, matrixes and all other 3D "things" in DBP.
This should help you: This code makes a simple matrix and allows the player to move around on it. It also creates a second camera which shows the same view as the main camera.
`Make a matrix
make matrix 1,100,100,10,10
`The default camera is camera number 0
xrotate camera 0,0
make camera 2
set camera view 2,0,0,150,150
do
if upkey() then move camera 0,0.1
if downkey() then move camera 0,-0.1
if leftkey() then turn camera left 0,0.1
if rightkey() then turn camera right 0,0.1
`Position the second camera
Position Camera 2,Camera Position X(0),Camera Position Y(0),Camera Position Z(0)
Rotate Camera 2,Camera Angle X(0),Camera Angle Y(0),Camera Angle Z(0)
loop
This slightly modified code produces a hilly matrix and constantly repositions the camera at the right height
`Make a matrix
make matrix 1,100,100,10,10
`The default camera is camera number 0
xrotate camera 0,0
make camera 2
set camera view 2,0,0,150,150
randomize matrix 1,10
update matrix 1
do
Position Camera 0,Camera Position X(0),Get Ground Height(1,Camera Position X(0),Camera Position Z(0))+5,Camera Position Z(0)
if upkey() then move camera 0,0.1
if downkey() then move camera 0,-0.1
if leftkey() then turn camera left 0,0.1
if rightkey() then turn camera right 0,0.1
`Position the second camera
Position Camera 2,Camera Position X(0),Camera Position Y(0),Camera Position Z(0)
Rotate Camera 2,Camera Angle X(0),Camera Angle Y(0),Camera Angle Z(0)
loop