Read the manual, use the help files. These are your friends (most of the time.) Fire up the editor and browse the help section often.
SET CAMERA TO FOLLOW
This command automatically controls the camera to provide a tracking system. By providing the 3D world
coordinate of the entity you wish to track, and some camera data, your camera will automatically update
its current position each time this command is called. The X, Y, Z and Angle values provide the coordinate
to track. The Distance value specifies the required distance between the coordinate and the camera. The
Height value specifies the required height of the camera in 3D space. The Smooth value specifies the level
of smoothing required for the camera, where a value of 1.0 is no smoothing and a value of 100.0 is lots of
smoothing. The Collision value is a special flag that allows the camera to detect whether it is hitting any of
the static collision boxes and if set to one will automatically adjust so as not to enter these collidable
areas.
SYNTAX
SET CAMERA TO FOLLOW X, Y, Z, Angle, Distance, Height, Smooth, Collision
SET CAMERA TO FOLLOW Camera Number, X, Y, Z, Angle, Distance, Height, Smooth, Collision
---------
POINT CAMERA
This command will point the camera to a point in 3D space. The coordinates should be real numbers.
SYNTAX
POINT CAMERA X, Y, Z
POINT CAMERA Camera Number, X, Y, Z
---------
So...
` every object/model has an ID number that you assign to it
` let's assume that pid is a variable that holds the object
` id of the plane you want to follow
` follow (angle 180) the airplane at (distance 100) units back
` and (height 20) units up, crisp camera movement (1), and no
` collision checks (0) since we're flying in wide open spaces
SET CAMERA TO FOLLOW object position X(pid), object position Y (pid), object position Z (pid), 180, 100, 20, 1, 0
` point the camera at airplane
POINT CAMERA object position X(pid), object position Y (pid), object position Z (pid)
--
TAZ