I think there are 2 ways you could do it. Either by using trigonometric functions which might be better but a bit cleaner. Or you could use the rotate and move local commands in agk.
I would do something like this
//Put the camera in the same place as the object and set the rotation
setCameraPosition(cameraID, getObjectX(objID), getObjectY(objID), getObjectZ(objID))
setCameraRotation(cameraID, getObjectRotationX(objID), getObjectRotationY(objID), getObjectRotationZ(objID)) //You might need to change angle to rotation or the other way around
//Now you can use the move local commands to move the camera around the object
//Let's say you want to move the camera to the left of the object
rotateCameraLocalY(cameraID, 90) //Turn the camera 90 degrees to the left
moveCameraLocalX(cameraID, -10) //Might be Z instead of X. Moves the camera back by how much you want to offset it
rotateCameraLocalY(cameraID, -90) //Rotate it back to the original angle if you want to
You can do this for any angles you want and any offset you want
Say ONE stupid thing and it ends up as a forum signature forever. - Neuro Fuzzy