Ah. A 3rd person camera. Okay, here goes:
Create 3 camera veriables
camx# as float
camy# as float
camz# as float
camy# should be the object height (or whatever you like) + height of the object in the level.
camx# should be calculated like this:
camx# = newxvalue(object position x(Player Object), wrapvalue(object angle y(Player Object) + 180), Number of units that you want the camera to be from your object)
camz# is like this:
camz# = newzvalue(object position z(Player Object), wrapvalue(object angle y(Player Object) + 180), Num of Units)
So assuming your player object is #1 and you want the camera 80 units behind your player it looks like this:
camy# = object height(1) + object position y(1)
camx# = newxvalue(object position x(1), wrapvalue(object angle y(1) + 180), 80)
camz# = newzvalue(object position z(1), wrapvalue(object angle y(1) + 180), 80)
Then make sure to position the camera:
position camera camx#, camy#, camz#
Pretty simple. The basic idea is to take the player objects position in space, and calculate where the camera should be relative to the player object's orientation. Thus the wrapvalue(object angle y(1) + 180) If the 180 becomes 90 or 270, the camera will be to the left or right of the object. Play around with the values and see what you get.
And one more thing: Make sure that the distance the camera is from the player can be flexible so that if the camera is smacking a static object it can move.
Watashi no namae wa Zeroshin desu! Hashitekudasai!